PHP Interface Zumba\Swivel\ManagerInterface

Inheritance: extends Psr\Log\LoggerAwareInterface
Show file Open project: zumba/swivel Interface Usage Examples

Public Methods

Method Description
forFeature ( string $slug ) : Builder Create a new Builder instance.
invoke ( 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.

Method Details

forFeature() public method

Create a new Builder instance.
public forFeature ( string $slug ) : Builder
$slug string
return Builder

invoke() public method

Syntactic sugar for creating simple feature toggles (ternary style).
public invoke ( string $slug, mixed $a, mixed $b = null ) : mixed
$slug string
$a mixed
$b mixed
return mixed

setBucket() public method

Set the Swivel Bucket.
public setBucket ( Zumba\Swivel\BucketInterface $bucket = null ) : Zumba\Swivel\ManagerInterface
$bucket Zumba\Swivel\BucketInterface
return Zumba\Swivel\ManagerInterface