mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-11 17:34:09 +02:00
update deps & install rector
This commit is contained in:
@@ -8,16 +8,11 @@ namespace DesignPatterns\Behavioral\Command;
|
||||
*/
|
||||
class Invoker
|
||||
{
|
||||
/**
|
||||
* @var Command
|
||||
*/
|
||||
private $command;
|
||||
private Command $command;
|
||||
|
||||
/**
|
||||
* in the invoker we find this kind of method for subscribing the command
|
||||
* There can be also a stack, a list, a fixed set ...
|
||||
*
|
||||
* @param Command $cmd
|
||||
*/
|
||||
public function setCommand(Command $cmd)
|
||||
{
|
||||
|
Reference in New Issue
Block a user