Exponential 5.x Kernel 7.5.40 Exponential New Stack (Symfony-based) Kernel — PHP Class Reference

Core/REST/Client/Input/Parser/Role.php
Go to the documentation of this file.
1 <?php
2
7 namespace eZ\Publish\Core\REST\Client\Input\Parser;
8
9 use eZ\Publish\Core\REST\Common\Input\BaseParser;
10 use eZ\Publish\Core\REST\Common\Input\ParsingDispatcher;
11 use eZ\Publish\Core\REST\Client;
12
16 class Role extends BaseParser
17 {
28 public function parse(array $data, ParsingDispatcher $parsingDispatcher)
29 {
30 return new Client\Values\User\Role(
31 array(
32 'id' => $data['_href'],
33 'identifier' => $data['identifier'],
34 )
35 );
36 }
37 }
eZ\Publish\API\Repository\Values\User\Role
Definition: API/Repository/Values/User/Role.php:19
eZ\Publish\Core\REST\Client\Input\Parser\Role\parse
parse(array $data, ParsingDispatcher $parsingDispatcher)
Parse input structure.
Definition: Core/REST/Client/Input/Parser/Role.php:28
eZ\Publish\Core\REST\Client\Values\User\Role
Implementation of the \eZ\Publish\API\Repository\Values\User\Role class.
Definition: Core/REST/Client/Values/User/Role.php:18
eZ\Publish\Core\REST\Common\Input\BaseParser
Definition: BaseParser.php:12
eZ\Publish\Core\REST\Common\Input\ParsingDispatcher
Parsing dispatcher.
Definition: ParsingDispatcher.php:15
eZ\Publish\Core\REST\Client\Input\Parser
Definition: Publish/Core/REST/Client/Input/Parser/Content.php:7
eZ\Publish\Core\REST\Client
Definition: Core/REST/Client/ContentService.php:7
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.