| 1 | <?php |
||
| 12 | class Callback implements CallbackInterface |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var CallbackSpecificationInterface |
||
| 16 | */ |
||
| 17 | private $specification; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var callable |
||
| 21 | */ |
||
| 22 | private $callable; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @param CallbackSpecificationInterface $callbackSpecification |
||
| 26 | * @param callable $callable |
||
| 27 | */ |
||
| 28 | 60 | public function __construct(CallbackSpecificationInterface $callbackSpecification, $callable) |
|
| 33 | |||
| 34 | /** |
||
| 35 | * @return CallbackSpecificationInterface |
||
| 36 | */ |
||
| 37 | 5 | public function getSpecification() |
|
| 41 | |||
| 42 | /** |
||
| 43 | * {@inheritDoc} |
||
| 44 | */ |
||
| 45 | 35 | public function call($object, TransitionEvent $event) |
|
| 49 | |||
| 50 | /** |
||
| 51 | * {@inheritDoc} |
||
| 52 | */ |
||
| 53 | 35 | public function __invoke(TransitionEvent $event) |
|
| 59 | } |
||
| 60 |