PHP Class DayleRees\ContainerDebug\Command

Inheritance: extends Illuminate\Console\Command
Datei anzeigen Open project: daylerees/container-debug Class Usage Examples

Protected Properties

Property Type Description
$description string The console command description.
$name string The console command name.

Public Methods

Method Description
buildServiceTable ( array $services ) : Symfony\Component\Console\Helper\TableHelper Construct an ASCII table to display services.
buildTableHeaders ( ) : array Build the column headers for the services table.
buildTableRows ( array $services ) : array Build the rows for the services table.
calculateServiceResolutionTime ( string $identifier ) : string Calculate the time to resolve a service in microseconds.
fire ( ) : void Execute the command.
formatServiceDescription ( mixed $service, boolean $scalar = true ) : string Retrieve a suitable formatted service description.
getContainerBindings ( ) : array Retreive an array of container bindings in alphabetical order.
getServiceDescription ( mixed $service ) : string Retrieve a string representation of a service.
resolveService ( string $identifier ) : mixed Resolve a service from the container by its identifier.
serviceIsObject ( mixed $service ) : boolean Determine whether a service is an object.

Method Details

buildServiceTable() public method

Construct an ASCII table to display services.
public buildServiceTable ( array $services ) : Symfony\Component\Console\Helper\TableHelper
$services array
return Symfony\Component\Console\Helper\TableHelper

buildTableHeaders() public method

Build the column headers for the services table.
public buildTableHeaders ( ) : array
return array

buildTableRows() public method

Build the rows for the services table.
public buildTableRows ( array $services ) : array
$services array
return array

calculateServiceResolutionTime() public method

Calculate the time to resolve a service in microseconds.
public calculateServiceResolutionTime ( string $identifier ) : string
$identifier string
return string

fire() public method

Execute the command.
public fire ( ) : void
return void

formatServiceDescription() public method

Retrieve a suitable formatted service description.
public formatServiceDescription ( mixed $service, boolean $scalar = true ) : string
$service mixed
$scalar boolean
return string

getContainerBindings() public method

Retreive an array of container bindings in alphabetical order.
public getContainerBindings ( ) : array
return array

getServiceDescription() public method

Retrieve a string representation of a service.
public getServiceDescription ( mixed $service ) : string
$service mixed
return string

resolveService() public method

Resolve a service from the container by its identifier.
public resolveService ( string $identifier ) : mixed
$identifier string
return mixed

serviceIsObject() public method

Determine whether a service is an object.
public serviceIsObject ( mixed $service ) : boolean
$service mixed
return boolean

Property Details

$description protected_oe property

The console command description.
protected string $description
return string

$name protected_oe property

The console command name.
protected string $name
return string