Свойство | Type | Description | |
---|---|---|---|
$bucket | Zumba\Swivel\BucketInterface | A configured Bucket instance. | |
$metrics | Zumba\Swivel\MetricsInterface | A metrics object. |
Méthode | Description | |
---|---|---|
__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. |
Méthode | Description | |
---|---|---|
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 | |
Résultat |
public setBucket ( Zumba\Swivel\BucketInterface $bucket = null ) : Zumba\Swivel\ManagerInterface | ||
$bucket | Zumba\Swivel\BucketInterface | |
Résultat | Zumba\Swivel\ManagerInterface |
protected setMetrics ( Zumba\Swivel\MetricsInterface $metrics ) | ||
$metrics | Zumba\Swivel\MetricsInterface |
protected BucketInterface,Zumba\Swivel $bucket | ||
Résultat | Zumba\Swivel\BucketInterface |