class BindWhen (View source)

Properties

class-string $concrete

The concrete class to bind to.

Container): bool $condition

The condition that determines if the binding should apply.

Methods

__construct(string $concrete, Closure $condition)

Create a new attribute instance.

Details

__construct(string $concrete, Closure $condition)

Create a new attribute instance.

Parameters

string $concrete
Closure $condition