PHP Class ManaPHP\Meter\Round

Inheritance: extends ManaPHP\Component, implements ManaPHP\Meter\RoundInterface
Exibir arquivo Open project: manaphp/manaphp

Protected Properties

Property Type Description
$_model string
$_prefix string
$_useRedis boolean

Public Methods

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

Protected Methods

Method Description
_save ( string $type, string $id, integer $begin_time, integer $duration, integer $count ) : void

Method Details

__construct() public method

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

_save() protected method

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
return void

flush() public method

public flush ( string $type, string $id = null ) : void
$type string
$id string
return void

record() public method

public record ( string $type, string $id, integer $duration ) : static
$type string
$id string
$duration integer
return static

Property Details

$_model protected_oe property

protected string $_model
return string

$_prefix protected_oe property

protected string $_prefix
return string

$_useRedis protected_oe property

protected bool $_useRedis
return boolean