PHP 클래스 Kahlan\Reporter\Coverage\Metrics

파일 보기 프로젝트 열기: crysalead/kahlan

보호된 프로퍼티들

프로퍼티 타입 설명
$_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.

메소드 상세

__construct() 공개 메소드

Constructor
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.

_merge() 보호된 메소드

Merges some given metrics to the existing metrics .
protected _merge ( array $metrics = [], boolean $line = false )
$metrics array Metrics data to merge.
$line boolean Set to `true` for function only

_parseName() 보호된 메소드

.
protected _parseName ( string $name ) : array
$name string The name reference of the metrics.
리턴 array The parsed name.

add() 공개 메소드

Adds some metrics to the current metrics.
public add ( string $name, $metrics )
$name string The name reference of the metrics. Possible values are: `'namespace'`, `'class' or 'function'.

children() 공개 메소드

Gets the children of the current metrics.
public children ( string $name = null ) : array
$name string The name reference of the metrics.
리턴 array The metrics children.

data() 공개 메소드

Gets/Sets the metrics stats.
public data ( array $metrics = [] ) : array
$metrics array The metrics data to set if defined.
리턴 array The metrics data.

get() 공개 메소드

Gets the metrics from a name.
public get ( string $name = null ) : object
$name string The name reference of the metrics.
리턴 object The metrics instance.

name() 공개 메소드

Gets the name of the metrics.
public name ( ) : string
리턴 string The name of the metrics.

parent() 공개 메소드

Gets the parent instance.
public parent ( ) : object
리턴 object The parent instance

type() 공개 메소드

Gets the type of the metrics.
public type ( ) : string
리턴 string The type of the metrics.

프로퍼티 상세

$_children 보호되어 있는 프로퍼티

The child metrics of the current metrics.
protected $_children

$_metrics 보호되어 있는 프로퍼티

The metrics data.
protected $_metrics

$_name 보호되어 있는 프로퍼티

The string name reference of the metrics.
protected string $_name
리턴 string

$_parent 보호되어 있는 프로퍼티

Reference to the parent metrics.
protected object $_parent
리턴 object

$_type 보호되어 있는 프로퍼티

The type of the metrics is about.
protected string $_type
리턴 string