Stub
in package
implements
ArrayAccess, Countable, IteratorAggregate
Class that can substitute for any object and safely do nothing.
Tags
Interfaces, Classes, Traits and Enums
- ArrayAccess
- Countable
- IteratorAggregate
Table of Contents
- __call() : mixed
- Gracefully accept any method call and do nothing.
- __callStatic() : mixed
- Gracefully accept any static method call and do nothing.
- __get() : null
- Return null for any requested property.
- __isset() : bool
- Property existence.
- __set() : mixed
- Ignore setting the requested property.
- __toString() : string
- Cooerce to an empty string.
- __unset() : mixed
- Ignore unsetting a property.
- count() : int
- getIterator() : Traversable
- offsetExists() : bool
- offsetGet() : mixed
- offsetSet() : void
- offsetUnset() : void
Methods
__call()
Gracefully accept any method call and do nothing.
public
__call(string $method, array<string|int, mixed> $args) : mixed
Parameters
- $method : string
-
The method that was called.
- $args : array<string|int, mixed>
-
The method's arguments.
Return values
mixed —__callStatic()
Gracefully accept any static method call and do nothing.
public
static __callStatic(string $method, array<string|int, mixed> $args) : mixed
Parameters
- $method : string
-
The method that was called.
- $args : array<string|int, mixed>
-
The method's arguments.
Return values
mixed —__get()
Return null for any requested property.
public
__get(string $key) : null
Parameters
- $key : string
-
The requested object property.
Return values
null —Null.
__isset()
Property existence.
public
__isset(string $key) : bool
Parameters
- $key : string
-
The requested object property.
Return values
bool —False.
__set()
Ignore setting the requested property.
public
__set(string $key, mixed $val) : mixed
Parameters
- $key : string
-
The property.
- $val : mixed
-
The property's value.
Return values
mixed —__toString()
Cooerce to an empty string.
public
__toString() : string
Return values
string —__unset()
Ignore unsetting a property.
public
__unset(string $key) : mixed
Parameters
- $key : string
-
The requested object property.
Return values
mixed —count()
public
count() : int
Return values
int —getIterator()
public
getIterator() : Traversable
Return values
Traversable —offsetExists()
public
offsetExists(mixed $offset) : bool
Parameters
- $offset : mixed
Return values
bool —offsetGet()
public
offsetGet(mixed $offset) : mixed
Parameters
- $offset : mixed
Return values
mixed —offsetSet()
public
offsetSet(mixed $offset, mixed $value) : void
Parameters
- $offset : mixed
- $value : mixed
Return values
void —offsetUnset()
public
offsetUnset(mixed $offset) : void
Parameters
- $offset : mixed