/** * @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); } } }
/** * @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); } } }