Documentation

Relationships
in package
implements RelationshipsInterface

Class Relationships

Tags
template
template
implements

Table of Contents

Interfaces

RelationshipsInterface
Interface RelationshipsInterface

Properties

$options  : array<string|int, mixed>
$parent  : P
$relationships  : array<string|int, RelationshipInterface<T, P>>

Methods

__construct()  : mixed
Relationships constructor.
count()  : int
current()  : RelationshipInterface<T, P>|null
getModified()  : array<string|int, RelationshipInterface<T, P>>
isModified()  : bool
jsonSerialize()  : array<string|int, mixed>
key()  : string
next()  : void
offsetExists()  : bool
offsetGet()  : RelationshipInterface<T, P>|null
offsetSet()  : mixed
offsetUnset()  : mixed
rewind()  : void
valid()  : bool
createRelationship()  : ToOneRelationship|ToManyRelationship

Properties

Methods

__construct()

Relationships constructor.

public __construct(P $parent, array<string|int, mixed> $options) : mixed
Parameters
$parent : P
$options : array<string|int, mixed>

count()

public count() : int
Tags
phpstan-pure
Return values
int

isModified()

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

jsonSerialize()

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

key()

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

offsetExists()

public offsetExists(string $offset) : bool
Parameters
$offset : string
Tags
phpstan-pure
Return values
bool

offsetSet()

public offsetSet(string $offset, mixed $value) : mixed
Parameters
$offset : string
$value : mixed

offsetUnset()

public offsetUnset(string $offset) : mixed
Parameters
$offset : string

valid()

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

        
On this page

Search results