1 | <?php |
||
9 | abstract class StaticMethodAction implements Action { |
||
10 | |||
11 | /** @var \ReflectionMethod */ |
||
12 | protected $method; |
||
13 | |||
14 | /** @var TypeFactory */ |
||
15 | protected $types; |
||
16 | |||
17 | /** @var CommentParser */ |
||
18 | protected $parser; |
||
19 | |||
20 | /** |
||
21 | * @param \ReflectionMethod $method |
||
22 | * @param TypeFactory $types |
||
23 | * @param CommentParser $parser |
||
24 | */ |
||
25 | public function __construct(\ReflectionMethod $method, TypeFactory $types, CommentParser $parser) { |
||
30 | |||
31 | /** |
||
32 | * @return string |
||
33 | */ |
||
34 | public function caption() { |
||
39 | |||
40 | protected function unCamelize($camel) { |
||
43 | |||
44 | /** |
||
45 | * @return string|null |
||
46 | */ |
||
47 | public function description() { |
||
57 | |||
58 | /** |
||
59 | * @return Parameter[] |
||
60 | */ |
||
61 | public function parameters() { |
||
72 | |||
73 | /** |
||
74 | * @return Parameter[] |
||
75 | */ |
||
76 | protected function initParameters() { |
||
79 | |||
80 | /** |
||
81 | * Fills out partially available parameters |
||
82 | * |
||
83 | * @param array $parameters Available values indexed by name |
||
84 | * @return array Filled values indexed by name |
||
85 | */ |
||
86 | public function fill(array $parameters) { |
||
94 | |||
95 | /** |
||
96 | * @return boolean True if the action modifies the state of the application |
||
97 | */ |
||
98 | public function isModifying() { |
||
101 | } |