public function mapUser(array $data)
    {
        $user = new User();
        $user->id = $data['contentobject_id'];
        $user->login = $data['login'];
        $user->email = $data['email'];
        $user->passwordHash = $data['password_hash'];
        $user->hashAlgorithm = (int)$data['password_hash_type'];
        $user->isEnabled = (bool)$data['is_enabled'];
        $user->maxLogin = $data['max_login'];

        return $user;
    }
public function mapUser(array $data)
    {
        $user = new User();
        $user->id = $data['contentobject_id'];
        $user->login = $data['login'];
        $user->email = $data['email'];
        $user->passwordHash = $data['password_hash'];
        $user->hashAlgorithm = (int)$data['password_hash_type'];
        $user->isEnabled = (bool)$data['is_enabled'];
        $user->maxLogin = $data['max_login'];

        return $user;
    }
public function mapUser ( array $ data ) { $ user = new User ( ) ; $ user -> id = $ data [ 'contentobject_id' ] ; $ user -> login = $ data [ 'login' ] ; $ user -> email = $ data [ 'email' ] ; $ user -> passwordHash = $ data [ 'password_hash' ] ; $ user -> hashAlgorithm = ( int ) $ data [ 'password_hash_type' ] ; $ user -> isEnabled = ( bool ) $ data [ 'is_enabled' ] ; $ user -> maxLogin = $ data [ 'max_login' ] ; return $ user ; }
Map user data into user object.

@param array $data

@return \eZ\Publish\SPI\Persistence\User
Map user data into user object .