public function validateRequired($only = []) { parent::validateRequired($only); if (!is_array($this->getAttribute('container'))) { throw new AdldapException('Container attribute must be an array.'); } return true; }
/** * Validates the required attributes. This will throw * an AdldapException on failure. * * @return bool * * @throws AdldapException */ public function validateRequired() { parent::validateRequired(); if (!is_array($this->getAttribute('container'))) { $message = 'Container attribute must be an array'; throw new AdldapException($message); } return true; }
public function validateRequired($only = []) { parent::validateRequired(); if (!is_array($this->getAttribute('storageGroup'))) { $message = 'Storage Group attribute must be an array'; throw new AdldapException($message); } return true; }