PHP Class ManaPHP\Counter\Adapter\Db

Inheritance: implements ManaPHP\Counter\AdapterInterface
ファイルを表示 Open project: manaphp/manaphp

Protected Properties

Property Type Description
$_maxTries integer
$_model string

Public Methods

Method 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 method

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

delete() public method

public delete ( string $type, string $id ) : void
$type string
$id string
return void

get() public method

public get ( string $type, string $id ) : integer
$type string
$id string
return integer

increment() public method

public increment ( string $type, string $id, integer $step = 1 ) : integer
$type string
$id string
$step integer
return integer

Property Details

$_maxTries protected_oe property

protected int $_maxTries
return integer

$_model protected_oe property

protected string $_model
return string