PHP 클래스 Basho\Riak\Command\Builder

use Basho\Riak\Command; use Basho\Riak\Bucket; use Basho\Riak\Location; $bucket = new Bucket('users'); $command = (new Command\Builder(Command::STORE_OBJECT)) ->withObject(new Object('test_data')) ->atLocation(new Location('test_key', $bucket)) ->build();
파일 보기 프로젝트 열기: basho/riak-php-client 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$headers array Command request headers
$parameters array Command parameters
$riak Basho\Riak | null
$verbose

공개 메소드들

메소드 설명
__construct ( Riak $riak )
build ( ) Command build
getConnection ( )
getParameters ( )
getVerbose ( )
withParameter ( $key, $value = true )
withParameters ( $parameters = [] )
withVerboseMode ( $verbose = true )

보호된 메소드들

메소드 설명
required ( $objectName ) Used to verify a property within the builder is not null and is instantiated
validate ( ) : boolean Validate command

메소드 상세

__construct() 공개 메소드

public __construct ( Riak $riak )
$riak Basho\Riak

build() 추상적인 공개 메소드

Validates then returns the built command object.
abstract public build ( )

getConnection() 공개 메소드

public getConnection ( )

getParameters() 공개 메소드

public getParameters ( )

getVerbose() 공개 메소드

public getVerbose ( )

required() 보호된 메소드

Used to verify a property within the builder is not null and is instantiated
protected required ( $objectName )
$objectName

validate() 보호된 메소드

Method validates if the builder has the parameters / objects required to successfully execute the command
protected validate ( ) : boolean
리턴 boolean

withParameter() 공개 메소드

public withParameter ( $key, $value = true )

withParameters() 공개 메소드

public withParameters ( $parameters = [] )

withVerboseMode() 공개 메소드

public withVerboseMode ( $verbose = true )

프로퍼티 상세

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

Command request headers
protected array $headers
리턴 array

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

Command parameters
protected array $parameters
리턴 array

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

protected Riak,Basho|null $riak
리턴 Basho\Riak | null

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

protected $verbose