Resource
abstract class Resource implements ArrayAccess
Resource class for general melon resources.
Properties
Melon | $melon | ||
protected array | $container |
Methods
array
toArray()
To get resource as array.
mixed
__get(mixed $name)
Reading data from inaccessible (protected or private) or non-existing properties.
void
offsetSet(mixed $offset, mixed $value)
ArrayAccess implementation.
bool
offsetExists(mixed $offset)
ArrayAccess implementation.
void
offsetUnset(mixed $offset)
ArrayAccess implementation.
mixed
offsetGet(mixed $offset)
ArrayAccess implementation.
static string|null
emptyToNull(string|null $path)
Infer the default image for Melon as null
Details
at line 24
abstract protected array
toArray()
To get resource as array.
at line 31
__construct(Melon $melon)
Constructor.
at line 41
mixed
__get(mixed $name)
Reading data from inaccessible (protected or private) or non-existing properties.
at line 49
void
offsetSet(mixed $offset, mixed $value)
ArrayAccess implementation.
at line 61
bool
offsetExists(mixed $offset)
ArrayAccess implementation.
at line 69
void
offsetUnset(mixed $offset)
ArrayAccess implementation.
at line 77
mixed
offsetGet(mixed $offset)
ArrayAccess implementation.
at line 90
static string|null
emptyToNull(string|null $path)
Infer the default image for Melon as null