1 | <?php |
||
12 | abstract class BaseLimitationParser extends BaseParser |
||
13 | { |
||
14 | /** |
||
15 | * Parse input structure. |
||
16 | * |
||
17 | * @param array $data |
||
18 | * @param \eZ\Publish\Core\REST\Common\Input\ParsingDispatcher $parsingDispatcher |
||
19 | * |
||
20 | * @return \eZ\Publish\API\Repository\Values\ValueObject |
||
21 | */ |
||
22 | public function parse(array $data, ParsingDispatcher $parsingDispatcher) |
||
50 | |||
51 | /** |
||
52 | * Returns the name of the id variable in the href of a limitation value. |
||
53 | * Example: the ID of the Section in /content/sections/{contentId} is 'contentId'. |
||
54 | * |
||
55 | * @return string |
||
56 | */ |
||
57 | abstract protected function getLimitationValueHrefIdName(); |
||
58 | |||
59 | /** |
||
60 | * Returns the limitation object the parser handles. |
||
61 | * |
||
62 | * @return \eZ\Publish\API\Repository\Values\User\Limitation A Limitation value object |
||
63 | */ |
||
64 | abstract protected function buildLimitationObject(); |
||
65 | } |
||
66 |