Documentation

ToOneRelationshipInterface extends RelationshipInterface

Interface ToOneRelationshipInterface

Tags
template
template
template-extends

Table of Contents

Methods

addIdentifier()  : bool
getCardinality()  : string
getIdentifier()  : T|null
getIterator()  : iterable<string|int, T>
getName()  : string
getObject()  : T|null
getParent()  : P
getType()  : string
has()  : bool
hasIdentifier()  : bool
isModified()  : bool
removeIdentifier()  : bool
replaceIdentifier()  : bool

Methods

addIdentifier()

public addIdentifier(T $identifier) : bool
Parameters
$identifier : T
Return values
bool

getIdentifier()

public getIdentifier([string|null $id = null ][, string|null $type = null ]) : T|null
Parameters
$id : string|null = null
$type : string|null = null
Tags
phpstan-pure
Return values
T|null

getIterator()

public getIterator() : iterable<string|int, T>
Return values
iterable<string|int, T>

getObject()

public getObject([string|null $id = null ][, string|null $type = null ]) : T|null
Parameters
$id : string|null = null
$type : string|null = null
Tags
phpstan-pure
Return values
T|null

has()

public has(string $id[, string|null $type = null ]) : bool
Parameters
$id : string
$type : string|null = null
Tags
phpstan-pure
Return values
bool

hasIdentifier()

public hasIdentifier(T $identifier) : bool
Parameters
$identifier : T
Tags
phpstan-pure
Return values
bool

removeIdentifier()

public removeIdentifier([T|null $identifier = null ]) : bool
Parameters
$identifier : T|null = null
Return values
bool

replaceIdentifier()

public replaceIdentifier([T|null $identifier = null ]) : bool
Parameters
$identifier : T|null = null
Return values
bool

        
On this page

Search results