HostLoader
in package
uses
ForbidCloning, ForbidSerialization
FinalYes
Table of Contents
Properties
- $path : string
Methods
- __construct() : mixed
- __serialize() : never
- __unserialize() : never
- loadHosts() : array<string|int, mixed>
- readFile() : string
- __clone() : mixed
- getDefaultPath() : string
Properties
$path read-only
private
string
$path
Methods
__construct()
public
__construct([string|null $path = null ]) : mixed
Parameters
- $path : string|null = null
__serialize()
public
final __serialize() : never
Return values
never__unserialize()
public
final __unserialize(array<string|int, mixed> $data) : never
Parameters
- $data : array<string|int, mixed>
Return values
neverloadHosts()
public
loadHosts() : array<string|int, mixed>
Return values
array<string|int, mixed>readFile()
public
readFile(string $path) : string
Parameters
- $path : string
Return values
string__clone()
protected
final __clone() : mixed
getDefaultPath()
private
getDefaultPath() : string