Documentation

ToManyRelationship
in package
implements ToManyRelationshipInterface uses RelationshipTrait, Serializable

Class ToManyRelationship

Tags
template
template
template-implements

Table of Contents

Interfaces

ToManyRelationshipInterface
Interface ToManyRelationshipInterface

Properties

$identifiers  : array<string|int, IdentifierInterface>
$modified  : bool
$name  : string
$options  : array<string|int, mixed>
$parent  : IdentifierInterface
$type  : string

Methods

__construct()  : mixed
ToManyRelationship constructor.
__serialize()  : array<string|int, mixed>
__unserialize()  : void
addIdentifier()  : bool
addIdentifiers()  : bool
check()  : void
count()  : int
fetch()  : array<string|int, mixed>
getCardinality()  : string
getIdentifier()  : IdentifierInterface|null
getIterator()  : iterable<string|int, IdentifierInterface>
getName()  : string
getNthIdentifier()  : IdentifierInterface|null
getObject()  : T|null
getParent()  : IdentifierInterface
getType()  : string
has()  : bool
hasIdentifier()  : bool
isModified()  : bool
jsonSerialize()  : array<string|int, mixed>
removeIdentifier()  : bool
removeIdentifiers()  : bool
replaceIdentifiers()  : bool
serialize()  : string
unserialize()  : void
getUnserializeAllowedClasses()  : array<string|int, mixed>|bool
checkIdentifier()  : IdentifierInterface
parseOptions()  : void

Properties

Methods

__serialize()

public __serialize() : array<string|int, mixed>
Return values
array<string|int, mixed>

__unserialize()

public __unserialize(array<string|int, mixed> $data) : void
Parameters
$data : array<string|int, mixed>

fetch()

public fetch() : array<string|int, mixed>
Return values
array<string|int, mixed>

getCardinality()

public getCardinality() : string
Tags
phpstan-pure
Return values
string

getObject()

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

isModified()

public isModified() : bool
Tags
phpstan-pure
Return values
bool

jsonSerialize()

public jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>

serialize()

public final serialize() : string
Return values
string

unserialize()

public final unserialize(string $serialized) : void
Parameters
$serialized : string

getUnserializeAllowedClasses()

protected getUnserializeAllowedClasses() : array<string|int, mixed>|bool
Return values
array<string|int, mixed>|bool

parseOptions()

private parseOptions(array<string|int, mixed> $options) : void
Parameters
$options : array<string|int, mixed>

        
On this page

Search results