Result
in package
implements
JsonSerializable
uses
ConfigAliases
AbstractYes
Table of Contents
Interfaces
- JsonSerializable
Properties
- $aliases : array<string|int, mixed>
- $configs : Collection
- $contents : string
- $modules : Collection
- $version : string
Methods
- __construct() : mixed
- canParse() : bool
- config() : string|null
- configs() : Collection
- hasConfig() : bool
- hasModule() : bool
- jsonSerialize() : array<string|int, mixed>
- module() : Module|null
- modules() : Collection
- version() : string
- getHostname() : string
- getOs() : string
- parse() : void
Properties
$aliases
protected
array<string|int, mixed>
$aliases
= ['os', 'hostname']
$configs
protected
Collection
$configs
$contents
protected
string
$contents
$modules
protected
Collection
$modules
$version
protected
string
$version
Methods
__construct()
public
__construct(string $contents) : mixed
Parameters
- $contents : string
canParse()
public
abstract static canParse(string $contents) : bool
Parameters
- $contents : string
Return values
boolconfig()
public
config(mixed $key[, mixed $which = 'local' ]) : string|null
Parameters
- $key : mixed
- $which : mixed = 'local'
Return values
string|nullconfigs()
public
configs() : Collection
Return values
CollectionhasConfig()
public
hasConfig(mixed $key) : bool
Parameters
- $key : mixed
Return values
boolhasModule()
public
hasModule(mixed $key) : bool
Parameters
- $key : mixed
Return values
booljsonSerialize()
public
jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>module()
public
module(mixed $key) : Module|null
Parameters
- $key : mixed
Return values
Module|nullmodules()
public
modules() : Collection
Return values
Collectionversion()
public
version() : string
Return values
stringgetHostname()
protected
getHostname() : string
Return values
stringgetOs()
protected
getOs() : string
Return values
stringparse()
protected
abstract parse() : void