PHP Class ManaPHP\Meter\Linear

Inheritance: extends ManaPHP\Component, implements ManaPHP\Meter\LinearInterface
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 = [] ) Linear constructor.
flush ( string $type, string $id = null ) : void
get ( string $type, string $id ) : integer
record ( string $type, string $id ) : static

Méthodes protégées

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

Method Details

__construct() public méthode

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

_save() protected méthode

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

flush() public méthode

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

get() public méthode

public get ( string $type, string $id ) : integer
$type string
$id string
Résultat integer

record() public méthode

public record ( string $type, string $id ) : static
$type string
$id string
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