Documentation

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

Methods

__construct()

public __construct([string|null $path = null ]) : mixed
Parameters
$path : string|null = null

__unserialize()

public final __unserialize(array<string|int, mixed> $data) : never
Parameters
$data : array<string|int, mixed>
Return values
never

loadHosts()

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

readFile()

public readFile(string $path) : string
Parameters
$path : string
Return values
string

getDefaultPath()

private getDefaultPath() : string
Return values
string

        
On this page

Search results