PHP Class Bravo3\Orm\Mappers\Metadata\Relationship

ファイルを表示 Open project: bravo3/orm Class Usage Examples

Protected Properties

Property Type Description
$getter string
$inversed_by string
$name string
$relationship_type Bravo3\Orm\Enum\RelationshipType
$setter string
$sortable_by Sortable[]
$source string
$target string

Public Methods

Method Description
__construct ( string $name, RelationshipType $relationship_type )
addSortableBy ( Sortable $property_name ) Add a property to be sortable by
getGetter ( ) : string Get Getter
getInversedBy ( ) : string Get inversed by field name
getName ( ) : string Get Name
getRelationshipType ( ) : RelationshipType Get relationship type
getSetter ( ) : string Get Setter
getSortableBy ( ) : Sortable[] Get list of relative properties that this relationship can be sorted by
getSource ( ) : string Get source class name
getTarget ( ) : string Get target class name
setGetter ( string $getter ) Set Getter
setInversedBy ( string $inversed_by ) Set inversed by field name
setName ( string $name ) Set Name
setRelationshipType ( RelationshipType $relationship_type ) Set relationship type
setSetter ( string $setter ) Set Setter
setSortableBy ( array $sortable_by ) Set list of relative properties that this relationship can be sorted by
setSource ( string $source ) Set source class name
setTarget ( string $target ) Set target class name

Method Details

__construct() public method

public __construct ( string $name, RelationshipType $relationship_type )
$name string
$relationship_type Bravo3\Orm\Enum\RelationshipType

addSortableBy() public method

Add a property to be sortable by
public addSortableBy ( Sortable $property_name )
$property_name Sortable

getGetter() public method

Get Getter
public getGetter ( ) : string
return string

getInversedBy() public method

Get inversed by field name
public getInversedBy ( ) : string
return string

getName() public method

Get Name
public getName ( ) : string
return string

getRelationshipType() public method

Get relationship type
public getRelationshipType ( ) : RelationshipType
return Bravo3\Orm\Enum\RelationshipType

getSetter() public method

Get Setter
public getSetter ( ) : string
return string

getSortableBy() public method

Get list of relative properties that this relationship can be sorted by
public getSortableBy ( ) : Sortable[]
return Sortable[]

getSource() public method

Get source class name
public getSource ( ) : string
return string

getTarget() public method

Get target class name
public getTarget ( ) : string
return string

setGetter() public method

Set Getter
public setGetter ( string $getter )
$getter string

setInversedBy() public method

Set inversed by field name
public setInversedBy ( string $inversed_by )
$inversed_by string

setName() public method

Set Name
public setName ( string $name )
$name string

setRelationshipType() public method

Set relationship type
public setRelationshipType ( RelationshipType $relationship_type )
$relationship_type Bravo3\Orm\Enum\RelationshipType

setSetter() public method

Set Setter
public setSetter ( string $setter )
$setter string

setSortableBy() public method

Set list of relative properties that this relationship can be sorted by
public setSortableBy ( array $sortable_by )
$sortable_by array

setSource() public method

Set source class name
public setSource ( string $source )
$source string

setTarget() public method

Set target class name
public setTarget ( string $target )
$target string

Property Details

$getter protected_oe property

protected string $getter
return string

$inversed_by protected_oe property

protected string $inversed_by
return string

$name protected_oe property

protected string $name
return string

$relationship_type protected_oe property

protected RelationshipType,Bravo3\Orm\Enum $relationship_type
return Bravo3\Orm\Enum\RelationshipType

$setter protected_oe property

protected string $setter
return string

$sortable_by protected_oe property

protected Sortable[],Bravo3\Orm\Mappers\Metadata $sortable_by
return Sortable[]

$source protected_oe property

protected string $source
return string

$target protected_oe property

protected string $target
return string