PHP Trait Blast\Orm\Relations\RelationTrait

Exibir arquivo Open project: phpthinktank/blast-orm

Protected Properties

Property Type Description
$name string
$query Blast\Orm\Query

Public Methods

Method Description
getName ( ) : string
getQuery ( ) : Query Query for accessing related data

Protected Methods

Method Description
getEntity ( ) : mixed Get local entity
getForeignEntity ( ) : mixed Get foreign entity

Method Details

getEntity() abstract protected method

Get local entity
abstract protected getEntity ( ) : mixed
return mixed

getForeignEntity() abstract protected method

Get foreign entity
abstract protected getForeignEntity ( ) : mixed
return mixed

getName() public method

public getName ( ) : string
return string

getQuery() abstract public method

Query for accessing related data
abstract public getQuery ( ) : Query
return Blast\Orm\Query

Property Details

$name protected_oe property

protected string $name
return string

$query protected_oe property

protected Query,Blast\Orm $query
return Blast\Orm\Query