1 | <?php |
||
25 | class CreatePage extends BaseCreatePage implements CreatePageInterface |
||
26 | { |
||
27 | use NamesIt; |
||
28 | use SpecifiesItsCode; |
||
29 | |||
30 | /** |
||
31 | * {@inheritdoc} |
||
32 | */ |
||
33 | public function addRule($ruleName) |
||
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | public function selectRuleOption($option, $value, $multiple = false) |
||
53 | |||
54 | /** |
||
55 | * {@inheritdoc} |
||
56 | */ |
||
57 | public function fillRuleOption($option, $value) |
||
61 | |||
62 | /** |
||
63 | * {@inheritdoc} |
||
64 | */ |
||
65 | public function fillRuleOptionForChannel($channelName, $option, $value) |
||
70 | |||
71 | /** |
||
72 | * {@inheritdoc} |
||
73 | */ |
||
74 | public function addAction($actionName) |
||
86 | |||
87 | /** |
||
88 | * {@inheritdoc} |
||
89 | */ |
||
90 | public function selectActionOption($option, $value, $multiple = false) |
||
94 | |||
95 | /** |
||
96 | * {@inheritdoc} |
||
97 | */ |
||
98 | public function fillActionOption($option, $value) |
||
102 | |||
103 | /** |
||
104 | * {@inheritdoc} |
||
105 | */ |
||
106 | public function fillActionOptionForChannel($channelName, $option, $value) |
||
111 | |||
112 | /** |
||
113 | * {@inheritdoc} |
||
114 | */ |
||
115 | public function fillUsageLimit($limit) |
||
119 | |||
120 | public function makeExclusive() |
||
124 | |||
125 | public function checkCouponBased() |
||
129 | |||
130 | public function checkChannel($name) |
||
134 | |||
135 | /** |
||
136 | * {@inheritdoc} |
||
137 | */ |
||
138 | public function setStartsAt(\DateTime $dateTime) |
||
145 | |||
146 | /** |
||
147 | * {@inheritdoc} |
||
148 | */ |
||
149 | public function setEndsAt(\DateTime $dateTime) |
||
156 | |||
157 | /** |
||
158 | * {@inheritdoc} |
||
159 | */ |
||
160 | public function getValidationMessageForAction() |
||
171 | |||
172 | /** |
||
173 | * {@inheritdoc} |
||
174 | */ |
||
175 | public function selectFilterOption($option, $value, $multiple = false) |
||
179 | |||
180 | /** |
||
181 | * {@inheritdoc} |
||
182 | */ |
||
183 | protected function getDefinedElements() |
||
196 | |||
197 | /** |
||
198 | * @param string $channelName |
||
199 | * |
||
200 | * @return NodeElement |
||
|
|||
201 | */ |
||
202 | private function getChannelConfigurationOfLastAction($channelName) |
||
209 | |||
210 | /** |
||
211 | * @param string $channelName |
||
212 | * |
||
213 | * @return NodeElement |
||
214 | */ |
||
215 | private function getChannelConfigurationOfLastRule($channelName) |
||
222 | |||
223 | /** |
||
224 | * @param string $collection |
||
225 | * |
||
226 | * @return NodeElement |
||
227 | */ |
||
228 | private function getLastCollectionItem($collection) |
||
236 | |||
237 | /** |
||
238 | * @param string $collection |
||
239 | * |
||
240 | * @return NodeElement[] |
||
241 | */ |
||
242 | private function getCollectionItems($collection) |
||
250 | } |
||
251 |
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.