Свойство | Тип | Описание | |
---|---|---|---|
$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 ) : |
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. |
public __construct ( Zumba\Swivel\ConfigInterface $config ) | ||
$config | Zumba\Swivel\ConfigInterface |
public forFeature ( string $slug ) : |
||
$slug | string | |
Результат |
public setBucket ( Zumba\Swivel\BucketInterface $bucket = null ) : Zumba\Swivel\ManagerInterface | ||
$bucket | Zumba\Swivel\BucketInterface | |
Результат | Zumba\Swivel\ManagerInterface |
protected setMetrics ( Zumba\Swivel\MetricsInterface $metrics ) | ||
$metrics | Zumba\Swivel\MetricsInterface |
protected BucketInterface,Zumba\Swivel $bucket | ||
Результат | Zumba\Swivel\BucketInterface |