public function user(array $attributes = [])
    {
        $model = $this->schema->userModel();

        return (new $model($attributes, $this->query))
            ->setAttribute($this->schema->objectClass(), $this->schema->userObjectClasses());
    }
public function user(array $attributes = [])
    {
        $model = $this->schema->userModel();

        return (new $model($attributes, $this->query))
            ->setAttribute($this->schema->objectClass(), $this->schema->userObjectClasses());
    }
public function user ( array $ attributes = [ ] ) { $ model = $ this -> schema -> userModel ( ) ; return ( new $ model ( $ attributes , $ this -> query ) ) -> setAttribute ( $ this -> schema -> objectClass ( ) , $ this -> schema -> userObjectClasses ( ) ) ; }
Creates a new user instance.

@param array $attributes

@return User
Creates a new user instance .