PHP 클래스 ManaPHP\Store

상속: extends Component, implements manaphp\StoreInterface
파일 보기 프로젝트 열기: manaphp/manaphp

공개 프로퍼티들

프로퍼티 타입 설명
$adapter ManaPHP\Store\AdapterInterface

보호된 프로퍼티들

프로퍼티 타입 설명
$_prefix string

공개 메소드들

메소드 설명
__construct ( string | array | ManaPHP\Store\AdapterInterface $options = [] ) Store constructor.
delete ( string $key ) Delete content
exists ( string $key ) : boolean Check if id exists
get ( string $key ) : mixed Fetch content
set ( string $key, mixed $value ) : void Stores content
setDependencyInjector ( ManaPHP\DiInterface $dependencyInjector ) : static

메소드 상세

__construct() 공개 메소드

Store constructor.
public __construct ( string | array | ManaPHP\Store\AdapterInterface $options = [] )
$options string | array | ManaPHP\Store\AdapterInterface

delete() 공개 메소드

Delete content
public delete ( string $key )
$key string

exists() 공개 메소드

Check if id exists
public exists ( string $key ) : boolean
$key string
리턴 boolean

get() 공개 메소드

Fetch content
public get ( string $key ) : mixed
$key string
리턴 mixed

set() 공개 메소드

Stores content
public set ( string $key, mixed $value ) : void
$key string
$value mixed
리턴 void

setDependencyInjector() 공개 메소드

public setDependencyInjector ( ManaPHP\DiInterface $dependencyInjector ) : static
$dependencyInjector ManaPHP\DiInterface
리턴 static

프로퍼티 상세

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

protected string $_prefix
리턴 string

$adapter 공개적으로 프로퍼티

public AdapterInterface,ManaPHP\Store $adapter
리턴 ManaPHP\Store\AdapterInterface