src/Objects/User.php
public function toModifySchema()
    {
        $this->validateRequired(['username']);

        if ($this->hasAttribute('container')) {
            if (!is_array($this->getAttribute('container'))) {
                throw new AdldapException('Container attribute must be an array');
            }
        }

        return $this->getAttributes();
    }
public function toModifySchema()
    {
        $this->validateRequired(['username']);

        if ($this->hasAttribute('container')) {
            if (!is_array($this->getAttribute('container'))) {
                throw new AdldapException('Container attribute must be an array');
            }
        }

        return $this->getAttributes();
    }
public function toModifySchema ( ) { $ this -> validateRequired ( [ 'username' ] ) ; if ( $ this -> hasAttribute ( 'container' ) ) { if ( ! is_array ( $ this -> getAttribute ( 'container' ) ) ) { throw new AdldapException ( 'Container attribute must be an array' ) ; } } return $ this -> getAttributes ( ) ; }
Checks the username attribute for existence and returns the attributes array.

@return array

@throws AdldapException
Checks the username attribute for existence and returns the attributes array .