protected function buildDomainUserObject(
        SPIUser $spiUser,
        APIContent $content = null,
        array $prioritizedLanguages = []
    ) {
        if ($content === null) {
            $content = $this->repository->getContentService()->internalLoadContent(
                $spiUser->id,
                $prioritizedLanguages
            );
        }

        return new User(
            array(
                'content' => $content,
                'login' => $spiUser->login,
                'email' => $spiUser->email,
                'passwordHash' => $spiUser->passwordHash,
                'hashAlgorithm' => (int)$spiUser->hashAlgorithm,
                'enabled' => $spiUser->isEnabled,
                'maxLogin' => (int)$spiUser->maxLogin,
            )
        );
    }
protected function buildDomainUserObject(
        SPIUser $spiUser,
        APIContent $content = null,
        array $prioritizedLanguages = []
    ) {
        if ($content === null) {
            $content = $this->repository->getContentService()->internalLoadContent(
                $spiUser->id,
                $prioritizedLanguages
            );
        }

        return new User(
            array(
                'content' => $content,
                'login' => $spiUser->login,
                'email' => $spiUser->email,
                'passwordHash' => $spiUser->passwordHash,
                'hashAlgorithm' => (int)$spiUser->hashAlgorithm,
                'enabled' => $spiUser->isEnabled,
                'maxLogin' => (int)$spiUser->maxLogin,
            )
        );
    }
protected function buildDomainUserObject ( SPIUser $ spiUser , APIContent $ content = null , array $ prioritizedLanguages = [ ] ) { if ( $ content === null ) { $ content = $ this -> repository -> getContentService ( ) -> internalLoadContent ( $ spiUser -> id , $ prioritizedLanguages ) ; } return new User ( array ( 'content' => $ content , 'login' => $ spiUser -> login , 'email' => $ spiUser -> email , 'passwordHash' => $ spiUser -> passwordHash , 'hashAlgorithm' => ( int ) $ spiUser -> hashAlgorithm , 'enabled' => $ spiUser -> isEnabled , 'maxLogin' => ( int ) $ spiUser -> maxLogin , ) ) ; }
Builds the domain user object from provided persistence user object.

@param \eZ\Publish\SPI\Persistence\User $spiUser
@param \eZ\Publish\API\Repository\Values\Content\Content|null $content
@param string[] $prioritizedLanguages Used as prioritized language code on translated properties of returned object.

@return \eZ\Publish\API\Repository\Values\User\User
Builds the domain user object from provided persistence user object .