コード例 #1
0
ファイル: GenericObjectAction.php プロジェクト: jonfm/domin
 public function __construct($class, TypeFactory $types, CommentParser $parser, callable $execute)
 {
     parent::__construct($class, $types, $parser);
     $this->execute = $execute;
     $this->generic = new GenericAction($this);
     $this->generic->setCaption(parent::caption())->setDescription(parent::description())->setParameters(parent::parameters())->setExecute(function ($parameters) {
         return parent::execute($parameters);
     })->setFill(function ($parameters) {
         return $parameters;
     });
 }