Log implements ArrayAccess
Table of Contents
Interfaces
- ArrayAccess
Properties
- $data : mixed
Methods
- __construct() : void
- Log constructor.
- getLog() : array<string|int, mixed>
- getValue() : mixed
- offsetExists() : bool
- offsetGet() : mixed|null
- offsetSet() : void
- offsetUnset() : void
- save() : mixed
- setLog() : $this
- Saves log.
- unlink() : mixed
Properties
$data
public
mixed
$data
= array()
Methods
__construct()
Log constructor.
public
__construct(string $path) : void
Parameters
- $path : string
-
Path to log file.
getLog()
public
getLog() : array<string|int, mixed>
Return values
array<string|int, mixed>getValue()
public
getValue(mixed $key) : mixed
Parameters
- $key : mixed
offsetExists()
public
offsetExists(mixed $offset) : bool
Parameters
- $offset : mixed
Return values
booloffsetGet()
public
offsetGet(mixed $offset) : mixed|null
Parameters
- $offset : mixed
Attributes
- #[ReturnTypeWillChange]
Return values
mixed|nulloffsetSet()
public
offsetSet(mixed $offset, mixed $value) : void
Parameters
- $offset : mixed
- $value : mixed
offsetUnset()
public
offsetUnset(mixed $offset) : void
Parameters
- $offset : mixed
save()
public
save() : mixed
setLog()
Saves log.
public
setLog(string $key, mixed $value) : $this
Parameters
- $key : string
-
Key of log array.
- $value : mixed
-
value of log array.
Return values
$thisunlink()
public
unlink() : mixed