src/Objects/AbstractObject.php
public function validateSpecific(array $required = [])
    {
        foreach ($required as $field) {
            /*
             * If the field is in the required array, and the
             * object attribute equals null, we'll throw an exception.
             */
            if (in_array($field, $this->required) && $this->getAttribute($field) === null) {
                throw new AdldapException(sprintf($this->messages['required'], $field));
            }
        }

        return true;
    }
public function validateSpecific(array $required = [])
    {
        foreach ($required as $field) {
            /*
             * If the field is in the required array, and the
             * object attribute equals null, we'll throw an exception.
             */
            if (in_array($field, $this->required) && $this->getAttribute($field) === null) {
                throw new AdldapException(sprintf($this->messages['required'], $field));
            }
        }

        return true;
    }
public function validateSpecific ( array $ required = [ ] ) { foreach ( $ required as $ field ) { /*
             * If the field is in the required array, and the
             * object attribute equals null, we'll throw an exception.
             */ if ( in_array ( $ field , $ this -> required ) && $ this -> getAttribute ( $ field ) === null ) { throw new AdldapException ( sprintf ( $ this -> messages [ 'required' ] , $ field ) ) ; } } return true ; }
Validates the specified attributes inside the required array.

The attributes inside the required array must also exist inside the
required property.

@param array $required

@return bool

@throws AdldapException
Validates the specified attributes inside the required array .