PHP Class DayleRees\ContainerDebug\Command

Inheritance: extends Illuminate\Console\Command
Afficher le fichier Open project: daylerees/container-debug Class Usage Examples

Protected Properties

Свойство Type Description
$description string The console command description.
$name string The console command name.

Méthodes publiques

Méthode 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 méthode

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

buildTableHeaders() public méthode

Build the column headers for the services table.
public buildTableHeaders ( ) : array
Résultat array

buildTableRows() public méthode

Build the rows for the services table.
public buildTableRows ( array $services ) : array
$services array
Résultat array

calculateServiceResolutionTime() public méthode

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

fire() public méthode

Execute the command.
public fire ( ) : void
Résultat void

formatServiceDescription() public méthode

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

getContainerBindings() public méthode

Retreive an array of container bindings in alphabetical order.
public getContainerBindings ( ) : array
Résultat array

getServiceDescription() public méthode

Retrieve a string representation of a service.
public getServiceDescription ( mixed $service ) : string
$service mixed
Résultat string

resolveService() public méthode

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

serviceIsObject() public méthode

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

Property Details

$description protected_oe property

The console command description.
protected string $description
Résultat string

$name protected_oe property

The console command name.
protected string $name
Résultat string