PHP Class GraphAware\Neo4j\OGM\Tests\Integration\Model\User

Show file Open project: graphaware/neo4j-php-ogm Class Usage Examples

Protected Properties

Property Type Description
$age
$contributions Contribution[] | GraphAware\Neo4j\OGM\Common\Collection
$currentCompany
$friends User[]
$id
$isActive boolean
$livesIn LivesIn
$login
$lovedBy
$loves
$roles SecurityRole[] | ArrayCollection
$userResources UserResource[] | ArrayCollection

Public Methods

Method Description
__construct ( $login, $age = null )
addContributionTo ( Repository $repository, $score )
addLovedBy ( User $user )
addLoves ( User $user )
addResource ( Resource $resource, $amount )
addRole ( SecurityRole $securityRole )
getAge ( ) : mixed
getCity ( )
getContributions ( ) : GraphAware\Neo4j\OGM\Common\Collection | Contribution[]
getCurrentCompany ( )
getFriends ( ) : ArrayCollection | User[]
getId ( ) : mixed
getLivesIn ( ) : mixed
getLogin ( ) : mixed
getLovedBy ( ) : mixed
getLoves ( ) : mixed
getRoles ( ) : SecurityRole[]
getUserResources ( ) : ArrayCollection | UserResource[]
isActive ( ) : boolean
removeCity ( City $city )
serialize ( )
setActive ( )
setAge ( $age )
setCity ( City $city, $since = null )
setCurrentCompany ( Company $company )
setInactive ( )
setLivesIn ( LivesIn $livesIn )
unserialize ( $serialized )

Method Details

__construct() public method

public __construct ( $login, $age = null )

addContributionTo() public method

public addContributionTo ( Repository $repository, $score )
$repository Repository

addLovedBy() public method

public addLovedBy ( User $user )
$user User

addLoves() public method

public addLoves ( User $user )
$user User

addResource() public method

public addResource ( Resource $resource, $amount )
$resource Resource

addRole() public method

public addRole ( SecurityRole $securityRole )
$securityRole SecurityRole

getAge() public method

public getAge ( ) : mixed
return mixed

getCity() public method

public getCity ( )

getContributions() public method

public getContributions ( ) : GraphAware\Neo4j\OGM\Common\Collection | Contribution[]
return GraphAware\Neo4j\OGM\Common\Collection | Contribution[]

getCurrentCompany() public method

public getCurrentCompany ( )

getFriends() public method

public getFriends ( ) : ArrayCollection | User[]
return Doctrine\Common\Collections\ArrayCollection | User[]

getId() public method

public getId ( ) : mixed
return mixed

getLivesIn() public method

public getLivesIn ( ) : mixed
return mixed

getLogin() public method

public getLogin ( ) : mixed
return mixed

getLovedBy() public method

public getLovedBy ( ) : mixed
return mixed

getLoves() public method

public getLoves ( ) : mixed
return mixed

getRoles() public method

public getRoles ( ) : SecurityRole[]
return SecurityRole[]

getUserResources() public method

public getUserResources ( ) : ArrayCollection | UserResource[]
return Doctrine\Common\Collections\ArrayCollection | UserResource[]

isActive() public method

public isActive ( ) : boolean
return boolean

removeCity() public method

public removeCity ( City $city )
$city City

serialize() public method

See also: Serializable::serialize()
public serialize ( )

setActive() public method

public setActive ( )

setAge() public method

public setAge ( $age )

setCity() public method

public setCity ( City $city, $since = null )
$city City

setCurrentCompany() public method

public setCurrentCompany ( Company $company )
$company Company

setInactive() public method

public setInactive ( )

setLivesIn() public method

public setLivesIn ( LivesIn $livesIn )
$livesIn LivesIn

unserialize() public method

See also: Serializable::unserialize()
public unserialize ( $serialized )

Property Details

$age protected property

protected $age

$contributions protected property

protected Contribution[],GraphAware\Neo4j\OGM\Tests\Integration\Model|Collection,GraphAware\Neo4j\OGM\Common $contributions
return Contribution[] | GraphAware\Neo4j\OGM\Common\Collection

$currentCompany protected property

protected $currentCompany

$friends protected property

protected User[],GraphAware\Neo4j\OGM\Tests\Integration\Model $friends
return User[]

$id protected property

protected $id

$isActive protected property

protected bool $isActive
return boolean

$livesIn protected property

protected LivesIn,GraphAware\Neo4j\OGM\Tests\Integration\Model $livesIn
return LivesIn

$login protected property

protected $login

$lovedBy protected property

protected $lovedBy

$loves protected property

protected $loves

$roles protected property

protected SecurityRole[],GraphAware\Neo4j\OGM\Tests\Integration\Model|ArrayCollection,Doctrine\Common\Collections $roles
return SecurityRole[] | ArrayCollection

$userResources protected property

protected UserResource[],GraphAware\Neo4j\OGM\Tests\Integration\Model|ArrayCollection,Doctrine\Common\Collections $userResources
return UserResource[] | ArrayCollection