PHP Class Movies\Person

Show file Open project: graphaware/neo4j-php-ogm

Protected Properties

Property Type Description
$born integer
$id integer
$movies Doctrine\Common\Collections\ArrayCollection | Movie[]
$name string

Public Methods

Method Description
__construct ( string $name, integer | null $born = null )
addMovie ( Movie $movie )
getBorn ( ) : integer
getId ( ) : integer
getMovies ( ) : ArrayCollection | Movie[]
getName ( ) : string
removeMovie ( Movie $movie )
setBorn ( integer $year )

Method Details

__construct() public method

public __construct ( string $name, integer | null $born = null )
$name string
$born integer | null

addMovie() public method

public addMovie ( Movie $movie )
$movie Movie

getBorn() public method

public getBorn ( ) : integer
return integer

getId() public method

public getId ( ) : integer
return integer

getMovies() public method

public getMovies ( ) : ArrayCollection | Movie[]
return Doctrine\Common\Collections\ArrayCollection | Movie[]

getName() public method

public getName ( ) : string
return string

removeMovie() public method

public removeMovie ( Movie $movie )
$movie Movie

setBorn() public method

public setBorn ( integer $year )
$year integer

Property Details

$born protected property

protected int $born
return integer

$id protected property

protected int $id
return integer

$movies protected property

protected ArrayCollection,Doctrine\Common\Collections|Movie[],movies $movies
return Doctrine\Common\Collections\ArrayCollection | Movie[]

$name protected property

protected string $name
return string