Documentation

Getters
in package
implements ArrayAccess, Countable

AbstractYes

Class Getters

Table of Contents

Interfaces

ArrayAccess
Countable

Properties

$gettersVariable  : string

Methods

__get()  : mixed
Magic getter method
__isset()  : bool
Magic method to determine if the attribute is set
__set()  : mixed
Magic setter method
__unset()  : mixed
Magic method to unset the attribute
count()  : int
offsetExists()  : bool
offsetGet()  : mixed
offsetSet()  : mixed
offsetUnset()  : mixed
toArray()  : array<string|int, mixed>
Returns an associative array of object properties.

Properties

$gettersVariable

protected string $gettersVariable = null

Define variable used in getters.

Methods

__get()

Magic getter method

public __get(int|string $offset) : mixed
Parameters
$offset : int|string

Medium name value

Attributes
#[ReturnTypeWillChange]
Return values
mixed

Medium value

__isset()

Magic method to determine if the attribute is set

public __isset(int|string $offset) : bool
Parameters
$offset : int|string

Medium name value

Attributes
#[ReturnTypeWillChange]
Return values
bool

True if the value is set

__set()

Magic setter method

public __set(int|string $offset, mixed $value) : mixed
Parameters
$offset : int|string

Medium name value

$value : mixed

Medium value

Attributes
#[ReturnTypeWillChange]

__unset()

Magic method to unset the attribute

public __unset(int|string $offset) : mixed
Parameters
$offset : int|string

The name value to unset

Attributes
#[ReturnTypeWillChange]

count()

public count() : int
Attributes
#[ReturnTypeWillChange]
Return values
int

offsetExists()

public offsetExists(int|string $offset) : bool
Parameters
$offset : int|string
Attributes
#[ReturnTypeWillChange]
Return values
bool

offsetGet()

public offsetGet(int|string $offset) : mixed
Parameters
$offset : int|string
Attributes
#[ReturnTypeWillChange]

offsetSet()

public offsetSet(int|string $offset, mixed $value) : mixed
Parameters
$offset : int|string
$value : mixed
Attributes
#[ReturnTypeWillChange]

offsetUnset()

public offsetUnset(int|string $offset) : mixed
Parameters
$offset : int|string
Attributes
#[ReturnTypeWillChange]

toArray()

Returns an associative array of object properties.

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

        
On this page

Search results