PHP 클래스 ManaPHP\Counter\Adapter\Db

상속: implements ManaPHP\Counter\AdapterInterface
파일 보기 프로젝트 열기: manaphp/manaphp

보호된 프로퍼티들

프로퍼티 타입 설명
$_maxTries integer
$_model string

공개 메소드들

메소드 설명
__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

메소드 상세

__construct() 공개 메소드

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

delete() 공개 메소드

public delete ( string $type, string $id ) : void
$type string
$id string
리턴 void

get() 공개 메소드

public get ( string $type, string $id ) : integer
$type string
$id string
리턴 integer

increment() 공개 메소드

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

프로퍼티 상세

$_maxTries 보호되어 있는 프로퍼티

protected int $_maxTries
리턴 integer

$_model 보호되어 있는 프로퍼티

protected string $_model
리턴 string