Свойство | Тип | Описание | |
---|---|---|---|
$_children | The child metrics of the current metrics. | ||
$_metrics | The metrics data. | ||
$_name | string | The string name reference of the metrics. | |
$_parent | object | Reference to the parent metrics. | |
$_type | string | The type of the metrics is about. |
Метод | Описание | |
---|---|---|
__construct ( array $options = [] ) | Constructor | |
add ( string $name, $metrics ) | Adds some metrics to the current metrics. | |
children ( string $name = null ) : array | Gets the children of the current metrics. | |
data ( array $metrics = [] ) : array | Gets/Sets the metrics stats. | |
get ( string $name = null ) : object | Gets the metrics from a name. | |
name ( ) : string | Gets the name of the metrics. | |
parent ( ) : object | Gets the parent instance. | |
type ( ) : string | Gets the type of the metrics. |
Метод | Описание | |
---|---|---|
_merge ( array $metrics = [], boolean $line = false ) | Merges some given metrics to the existing metrics . | |
_parseName ( string $name ) : array | Gets meta info of a metrics from a name reference. |
public __construct ( array $options = [] ) | ||
$options | array | Possible options values are: - `'name'` _string_ : the string name reference of the metrics. - `'type'` _string_ : the type of the metrics is about. - `'parent'` _instance_: reference to the parent metrics. |
protected _parseName ( string $name ) : array | ||
$name | string | The name reference of the metrics. |
Результат | array | The parsed name. |
protected string $_name | ||
Результат | string |
protected object $_parent | ||
Результат | object |
protected string $_type | ||
Результат | string |