PHP Class ManaPHP\Meter\Round

Inheritance: extends ManaPHP\Component, implements ManaPHP\Meter\RoundInterface
Afficher le fichier Open project: manaphp/manaphp

Protected Properties

Свойство Type Description
$_model string
$_prefix string
$_useRedis boolean

Méthodes publiques

Méthode Description
__construct ( boolean | string | array $options = [] ) Round constructor.
flush ( string $type, string $id = null ) : void
record ( string $type, string $id, integer $duration ) : static

Méthodes protégées

Méthode Description
_save ( string $type, string $id, integer $begin_time, integer $duration, integer $count ) : void

Method Details

__construct() public méthode

Round constructor.
public __construct ( boolean | string | array $options = [] )
$options boolean | string | array

_save() protected méthode

protected _save ( string $type, string $id, integer $begin_time, integer $duration, integer $count ) : void
$type string
$id string
$begin_time integer
$duration integer
$count integer
Résultat void

flush() public méthode

public flush ( string $type, string $id = null ) : void
$type string
$id string
Résultat void

record() public méthode

public record ( string $type, string $id, integer $duration ) : static
$type string
$id string
$duration integer
Résultat static

Property Details

$_model protected_oe property

protected string $_model
Résultat string

$_prefix protected_oe property

protected string $_prefix
Résultat string

$_useRedis protected_oe property

protected bool $_useRedis
Résultat boolean