コード例 #1
0
ファイル: Step.php プロジェクト: objective-php/application
 /**
  * @param string $name
  * @param array  $input
  */
 public function __construct($name, array $input = [])
 {
     parent::__construct($input);
     $this->setName($name);
     $this->restrictTo(Hook::class, false);
 }
コード例 #2
0
ファイル: MessageStack.php プロジェクト: objective-php/html
 public function __construct($messages = [])
 {
     parent::__construct($messages);
     $this->restrictTo(MessageInterface::class);
 }