Наследование: extends InvalidArgumentExceptio\InvalidArgumentException
Пример #1
0
 /**
  * @inheritDoc
  *
  * @throws DirectoryException If a value is not an Action instance
  */
 public function validate(array $data)
 {
     parent::validate($data);
     foreach ($data as $value) {
         if (!is_object($value) || !$value instanceof Action) {
             throw DirectoryException::invalidEntry($value);
         }
     }
 }
Пример #2
0
 /**
  * @inheritDoc
  *
  * @throws DirectoryException If a value is not an Action instance
  */
 protected function assertValid(array $data)
 {
     parent::assertValid($data);
     foreach ($data as $value) {
         if (!is_object($value) || !$value instanceof Action) {
             throw DirectoryException::invalidEntry($value);
         }
     }
 }