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

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

Protected Properties

Property Type Description
$id
$memberships PlaysInTeam[] | GraphAware\Neo4j\OGM\Common\Collection
$name string

Public Methods

Method Description
__construct ( $name )
addMembership ( PlaysInTeam $playsInTeam )
getId ( ) : mixed
getMemberships ( ) : GraphAware\Neo4j\OGM\Common\Collection | PlaysInTeam[]
getName ( ) : mixed

Method Details

__construct() public method

public __construct ( $name )

addMembership() public method

public addMembership ( PlaysInTeam $playsInTeam )
$playsInTeam PlaysInTeam

getId() public method

public getId ( ) : mixed
return mixed

getMemberships() public method

public getMemberships ( ) : GraphAware\Neo4j\OGM\Common\Collection | PlaysInTeam[]
return GraphAware\Neo4j\OGM\Common\Collection | PlaysInTeam[]

getName() public method

public getName ( ) : mixed
return mixed

Property Details

$id protected property

protected $id

$memberships protected property

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

$name protected property

protected string $name
return string