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