\DephpugCommandList

Class with reflection to get all commands in Dephpugger project and run methods following the level in each command

Summary

Methods
Properties
Constants
__construct()
match()
run()
runMethod()
$reflection
$core
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$reflection

$reflection : 

Reflection to get all commands

Type

$core

$core : 

Pointer to core instance

Type

Methods

__construct()

__construct(  $core) 

Parameters

$core
Warning: count(): Parameter must be an array or an object that implements Countable in phar:///src/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///src/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293

match()

match(string  $command) : \Dephpug\obj

Match all commands regexp and return the correct command to match this one (sorted by level)

Parameters

string $command
Warning: count(): Parameter must be an array or an object that implements Countable in phar:///src/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///src/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293

Returns

\Dephpug\obj —

$plugin

run()

run(string  $command) : void

Get the command and call the method exec();

Parameters

string $command
Warning: count(): Parameter must be an array or an object that implements Countable in phar:///src/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///src/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293

runMethod()

runMethod(string  $methodName, array  $params = array()) 

Run an especific method for a reflection passing parameters

Parameters

string $methodName

Indicates the name of the method to call

array $params

Indicates the parameters to send to method called

Warning: count(): Parameter must be an array or an object that implements Countable in phar:///src/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293 Warning: count(): Parameter must be an array or an object that implements Countable in phar:///src/phpDocumentor.phar/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1293