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 | 55 | 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 __invoke(TransitionEvent $event) |
|
51 | |||
52 | /** |
||
53 | * {@inheritDoc} |
||
54 | */ |
||
55 | 30 | protected function call($object, TransitionEvent $event) |
|
59 | } |
||
60 |