PHP 클래스 Zumba\Swivel\Manager

상속: implements Zumba\Swivel\ManagerInterface, use trait Psr\Log\LoggerAwareTrait
파일 보기 프로젝트 열기: zumba/swivel 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$bucket Zumba\Swivel\BucketInterface A configured Bucket instance.
$metrics Zumba\Swivel\MetricsInterface A metrics object.

공개 메소드들

메소드 설명
__construct ( Zumba\Swivel\ConfigInterface $config ) Zumba\Swivel\Manager.
forFeature ( string $slug ) : Builder Create a new Builder instance.
invoke ( string $slug, callable $a, callable $b = null ) : mixed Syntactic sugar for creating simple feature toggles (ternary style).
returnValue ( string $slug, mixed $a, mixed $b = null ) : mixed Syntactic sugar for creating simple feature toggles (ternary style).
setBucket ( Zumba\Swivel\BucketInterface $bucket = null ) : Zumba\Swivel\ManagerInterface Set the Swivel Bucket.

보호된 메소드들

메소드 설명
setMetrics ( Zumba\Swivel\MetricsInterface $metrics ) Set a metrics object.

메소드 상세

__construct() 공개 메소드

Zumba\Swivel\Manager.
public __construct ( Zumba\Swivel\ConfigInterface $config )
$config Zumba\Swivel\ConfigInterface

forFeature() 공개 메소드

Create a new Builder instance.
또한 보기: Zumba\Swivel\ManagerInterface
public forFeature ( string $slug ) : Builder
$slug string
리턴 Builder

invoke() 공개 메소드

Uses Builder::addBehavior
또한 보기: Zumba\Swivel\ManagerInterface
public invoke ( string $slug, callable $a, callable $b = null ) : mixed
$slug string
$a callable
$b callable
리턴 mixed

returnValue() 공개 메소드

Uses Builder::addValue
또한 보기: Zumba\Swivel\ManagerInterface
public returnValue ( string $slug, mixed $a, mixed $b = null ) : mixed
$slug string
$a mixed
$b mixed
리턴 mixed

setBucket() 공개 메소드

Set the Swivel Bucket.
또한 보기: Zumba\Swivel\ManagerInterface
public setBucket ( Zumba\Swivel\BucketInterface $bucket = null ) : Zumba\Swivel\ManagerInterface
$bucket Zumba\Swivel\BucketInterface
리턴 Zumba\Swivel\ManagerInterface

setMetrics() 보호된 메소드

Set a metrics object.
protected setMetrics ( Zumba\Swivel\MetricsInterface $metrics )
$metrics Zumba\Swivel\MetricsInterface

프로퍼티 상세

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

A configured Bucket instance.
protected BucketInterface,Zumba\Swivel $bucket
리턴 Zumba\Swivel\BucketInterface

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

A metrics object.
protected MetricsInterface,Zumba\Swivel $metrics
리턴 Zumba\Swivel\MetricsInterface