Example #1
0
 /**
  * @param string $name
  * @param array  $input
  */
 public function __construct($name, array $input = [])
 {
     parent::__construct($input);
     $this->setName($name);
     $this->restrictTo(Hook::class, false);
 }
Example #2
0
 public function __construct($messages = [])
 {
     parent::__construct($messages);
     $this->restrictTo(MessageInterface::class);
 }