@@ -374,6 +374,11 @@ |
||
374 | 374 | } |
375 | 375 | } |
376 | 376 | |
377 | + /** |
|
378 | + * @param string $viewType |
|
379 | + * @param integer $contentId |
|
380 | + * @param integer $locationId |
|
381 | + */ |
|
377 | 382 | protected function handleViewException(Response $response, $params, Exception $e, $viewType, $contentId = null, $locationId = null) |
378 | 383 | { |
379 | 384 | $event = new APIContentExceptionEvent( |
@@ -304,9 +304,9 @@ |
||
304 | 304 | /** |
305 | 305 | * Returns configured template reference for the given embed parameters. |
306 | 306 | * |
307 | - * @param $resourceType |
|
308 | - * @param $isInline |
|
309 | - * @param $isDenied |
|
307 | + * @param integer $resourceType |
|
308 | + * @param boolean $isInline |
|
309 | + * @param boolean $isDenied |
|
310 | 310 | * |
311 | 311 | * @return null|string |
312 | 312 | */ |
@@ -23,6 +23,9 @@ discard block |
||
23 | 23 | { |
24 | 24 | const MATCHER_RELATIVE_NAMESPACE = 'eZ\\Publish\\Core\\MVC\\Symfony\\Matcher\\Block'; |
25 | 25 | |
26 | + /** |
|
27 | + * @param string $matcherIdentifier |
|
28 | + */ |
|
26 | 29 | protected function getMatcher($matcherIdentifier) |
27 | 30 | { |
28 | 31 | @trigger_error( |
@@ -45,7 +48,6 @@ discard block |
||
45 | 48 | * Checks if $valueObject matches $matcher rules. |
46 | 49 | * |
47 | 50 | * @param \eZ\Publish\Core\MVC\Symfony\Matcher\MatcherInterface $matcher |
48 | - * @param ValueObject $valueObject |
|
49 | 51 | * |
50 | 52 | * @throws InvalidArgumentException |
51 | 53 | * |
@@ -148,7 +148,7 @@ |
||
148 | 148 | /** |
149 | 149 | * @param array $matchConfig |
150 | 150 | * |
151 | - * @return AbstractMatcherFactory |
|
151 | + * @return ClassNameMatcherFactory |
|
152 | 152 | */ |
153 | 153 | public function setMatchConfig($matchConfig) |
154 | 154 | { |
@@ -20,6 +20,9 @@ |
||
20 | 20 | { |
21 | 21 | const MATCHER_RELATIVE_NAMESPACE = 'eZ\\Publish\\Core\\MVC\\Symfony\\Matcher\\ContentBased'; |
22 | 22 | |
23 | + /** |
|
24 | + * @param string $matcherIdentifier |
|
25 | + */ |
|
23 | 26 | protected function getMatcher($matcherIdentifier) |
24 | 27 | { |
25 | 28 | @trigger_error( |
@@ -25,7 +25,6 @@ |
||
25 | 25 | * Checks if $valueObject matches $matcher rules. |
26 | 26 | * |
27 | 27 | * @param \eZ\Publish\Core\MVC\Symfony\Matcher\ContentBased\MatcherInterface $matcher |
28 | - * @param ValueObject $valueObject |
|
29 | 28 | * |
30 | 29 | * @throws \InvalidArgumentException |
31 | 30 | * |
@@ -173,9 +173,8 @@ discard block |
||
173 | 173 | } |
174 | 174 | |
175 | 175 | /** |
176 | - * @param array $properties |
|
177 | 176 | * |
178 | - * @return \PHPUnit_Framework_MockObject_MockObject|\eZ\Publish\Core\MVC\Symfony\View\ContentView |
|
177 | + * @return ContentView |
|
179 | 178 | */ |
180 | 179 | protected function getContentView(array $contentInfoProperties = [], array $locationProperties = []) |
181 | 180 | { |
@@ -199,7 +198,7 @@ discard block |
||
199 | 198 | /** |
200 | 199 | * @param array $blockProperties |
201 | 200 | * |
202 | - * @return \PHPUnit_Framework_MockObject_MockObject|\eZ\Publish\Core\MVC\Symfony\View\BlockView |
|
201 | + * @return BlockView |
|
203 | 202 | */ |
204 | 203 | protected function getBlockView(array $blockProperties = array()) |
205 | 204 | { |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | * Returns a valid ValueObject (supported by current MatcherFactory), that will match the test rules. |
19 | 19 | * i.e. Should return eZ\Publish\API\Repository\Values\Content\Location for LocationMatcherFactory. |
20 | 20 | * |
21 | - * @return \eZ\Publish\API\Repository\Values\ValueObject |
|
21 | + * @return \eZ\Publish\Core\MVC\Symfony\View\BlockView |
|
22 | 22 | */ |
23 | 23 | protected function getMatchableValueObject() |
24 | 24 | { |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | * Returns a valid ValueObject (supported by current MatcherFactory), that won't match the test rules. |
30 | 30 | * i.e. Should return eZ\Publish\API\Repository\Values\Content\Location for LocationMatcherFactory. |
31 | 31 | * |
32 | - * @return \eZ\Publish\API\Repository\Values\ValueObject |
|
32 | + * @return \eZ\Publish\Core\MVC\Symfony\View\BlockView |
|
33 | 33 | */ |
34 | 34 | protected function getNonMatchableValueObject() |
35 | 35 | { |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | * Returns a valid ValueObject (supported by current MatcherFactory), that will match the test rules. |
19 | 19 | * i.e. Should return eZ\Publish\API\Repository\Values\Content\Location for LocationMatcherFactory. |
20 | 20 | * |
21 | - * @return \eZ\Publish\API\Repository\Values\ValueObject |
|
21 | + * @return \eZ\Publish\Core\MVC\Symfony\View\ContentView |
|
22 | 22 | */ |
23 | 23 | protected function getMatchableValueObject() |
24 | 24 | { |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | * Returns a valid ValueObject (supported by current MatcherFactory), that won't match the test rules. |
30 | 30 | * i.e. Should return eZ\Publish\API\Repository\Values\Content\Location for LocationMatcherFactory. |
31 | 31 | * |
32 | - * @return \eZ\Publish\API\Repository\Values\ValueObject |
|
32 | + * @return \eZ\Publish\Core\MVC\Symfony\View\ContentView |
|
33 | 33 | */ |
34 | 34 | protected function getNonMatchableValueObject() |
35 | 35 | { |