PHP Class ManaPHP\Counter\Adapter\Db

Inheritance: implements ManaPHP\Counter\AdapterInterface
Afficher le fichier Open project: manaphp/manaphp

Protected Properties

Свойство Type Description
$_maxTries integer
$_model string

Méthodes publiques

Méthode Description
__construct ( string | array | Db $options = [] ) Db constructor.
delete ( string $type, string $id ) : void
get ( string $type, string $id ) : integer
increment ( string $type, string $id, integer $step = 1 ) : integer

Method Details

__construct() public méthode

Db constructor.
public __construct ( string | array | Db $options = [] )
$options string | array | ConfManaPHP\Counter\Adapter\Db

delete() public méthode

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

increment() public méthode

public increment ( string $type, string $id, integer $step = 1 ) : integer
$type string
$id string
$step integer
Résultat integer

Property Details

$_maxTries protected_oe property

protected int $_maxTries
Résultat integer

$_model protected_oe property

protected string $_model
Résultat string