Inheritance: 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);
         }
     }
 }