| @@ 17-30 (lines=14) @@ | ||
| 14 | * @param TypeFactory $types |
|
| 15 | * @param CommentParser $parser |
|
| 16 | */ |
|
| 17 | public function __construct($object, $method, TypeFactory $types, CommentParser $parser) { |
|
| 18 | parent::__construct($object, $method, $types, $parser); |
|
| 19 | $this->generic = new GenericAction($this); |
|
| 20 | $this->generic |
|
| 21 | ->setCaption(parent::caption()) |
|
| 22 | ->setDescription(parent::description()) |
|
| 23 | ->setParameters(parent::parameters()) |
|
| 24 | ->setExecute(function ($parameters) { |
|
| 25 | return parent::execute($parameters); |
|
| 26 | }) |
|
| 27 | ->setFill(function ($parameters) { |
|
| 28 | return $parameters; |
|
| 29 | }); |
|
| 30 | } |
|
| 31 | ||
| 32 | public function generic() { |
|
| 33 | return $this->generic; |
|
| @@ 14-28 (lines=15) @@ | ||
| 11 | /** @var GenericAction */ |
|
| 12 | private $generic; |
|
| 13 | ||
| 14 | public function __construct($class, TypeFactory $types, CommentParser $parser, callable $execute) { |
|
| 15 | parent::__construct($class, $types, $parser); |
|
| 16 | $this->execute = $execute; |
|
| 17 | $this->generic = new GenericAction($this); |
|
| 18 | $this->generic |
|
| 19 | ->setCaption(parent::caption()) |
|
| 20 | ->setDescription(parent::description()) |
|
| 21 | ->setParameters(parent::parameters()) |
|
| 22 | ->setExecute(function ($parameters) { |
|
| 23 | return parent::execute($parameters); |
|
| 24 | }) |
|
| 25 | ->setFill(function ($parameters) { |
|
| 26 | return $parameters; |
|
| 27 | }); |
|
| 28 | } |
|
| 29 | ||
| 30 | public function generic() { |
|
| 31 | return $this->generic; |
|