1 | <?php |
||
29 | class ScenarioStateInitializer implements ContextInitializer, EventSubscriberInterface, StepArgumentHolder |
||
30 | { |
||
31 | /** |
||
32 | * @var ScenarioStateInterface |
||
33 | */ |
||
34 | private $store; |
||
35 | |||
36 | 2 | public function __construct() |
|
40 | |||
41 | /** |
||
42 | * {@inheritdoc} |
||
43 | */ |
||
44 | 1 | public static function getSubscribedEvents() |
|
50 | |||
51 | /** |
||
52 | * {@inheritdoc} |
||
53 | */ |
||
54 | 1 | public function initializeContext(Context $context) |
|
62 | |||
63 | 2 | public function clearStore() |
|
67 | |||
68 | /** |
||
69 | * @return ScenarioStateInterface |
||
70 | */ |
||
71 | 2 | public function getStore() |
|
75 | |||
76 | /** |
||
77 | * Test if this service should handle specific argument injection. |
||
78 | * |
||
79 | * @param StepInjectorArgument $annotation |
||
80 | * |
||
81 | * @return bool |
||
82 | */ |
||
83 | public function doesHandleStepArgument(StepInjectorArgument $annotation) |
||
87 | |||
88 | /** |
||
89 | * Get an argument value to inject. |
||
90 | * |
||
91 | * @param StepInjectorArgument $annotation |
||
92 | * |
||
93 | * @throws RejectedAnnotationException |
||
94 | * |
||
95 | * @return mixed |
||
96 | */ |
||
97 | public function getStepArgumentValueFor(StepInjectorArgument $annotation) |
||
106 | } |
||
107 |