Documentation

ToManyRelationshipInterface extends RelationshipInterface

Interface ToManyRelationshipInterface

Tags
template
template
template-extends

Table of Contents

Methods

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

Methods

addIdentifier()

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

addIdentifiers()

public addIdentifiers(iterable<string|int, T$identifiers) : bool
Parameters
$identifiers : iterable<string|int, T>
Return values
bool

getIdentifier()

public getIdentifier(string $id[, string|null $type = null ]) : T|null
Parameters
$id : string
$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 $id[, string|null $type = null ]) : T|null
Parameters
$id : string
$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

removeIdentifiers()

public removeIdentifiers(iterable<string|int, T$identifiers) : bool
Parameters
$identifiers : iterable<string|int, T>
Return values
bool

replaceIdentifiers()

public replaceIdentifiers(iterable<string|int, T$identifiers) : bool
Parameters
$identifiers : iterable<string|int, T>
Return values
bool

        
On this page

Search results