PHP Class Movies\User

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

Protected Properties

Property Type Description
$id integer
$login string
$ratings Rating[] | ArrayCollection

Public Methods

Method Description
__construct ( string $login )
getId ( ) : integer
getLogin ( ) : string
getRatings ( ) : ArrayCollection | Rating[]
rateMovie ( Movie $movie, float $score )

Method Details

__construct() public method

public __construct ( string $login )
$login string

getId() public method

public getId ( ) : integer
return integer

getLogin() public method

public getLogin ( ) : string
return string

getRatings() public method

public getRatings ( ) : ArrayCollection | Rating[]
return Doctrine\Common\Collections\ArrayCollection | Rating[]

rateMovie() public method

public rateMovie ( Movie $movie, float $score )
$movie Movie
$score float

Property Details

$id protected property

protected int $id
return integer

$login protected property

protected string $login
return string

$ratings protected property

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