Documentation

ToOneRelationship
in package
implements ToOneRelationshipInterface uses RelationshipTrait, Serializable

Class ToOneRelationship

Tags
template
template
template-implements

Table of Contents

Interfaces

ToOneRelationshipInterface
Interface ToOneRelationshipInterface

Properties

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

Methods

__construct()  : mixed
__serialize()  : array<string|int, mixed>
__unserialize()  : void
addIdentifier()  : bool
check()  : void
count()  : int
fetch()  : object|null
getCardinality()  : string
getIdentifier()  : IdentifierInterface|null
getIterator()  : iterable<string|int, IdentifierInterface>
getName()  : string
getObject()  : T|null
getParent()  : IdentifierInterface
getType()  : string
has()  : bool
hasIdentifier()  : bool
isModified()  : bool
jsonSerialize()  : array<string|int, mixed>|null
removeIdentifier()  : bool
replaceIdentifier()  : 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>

getCardinality()

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

getObject()

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

has()

public has([string|null $id = null ][, string|null $type = null ]) : bool
Parameters
$id : string|null = null
$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>|null
Return values
array<string|int, mixed>|null

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