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

RestRole.php
Go to the documentation of this file.
1 <?php
2
7 namespace eZ\Publish\Core\REST\Server\Values;
8
9 use eZ\Publish\API\Repository\Values\User\Role;
10 use eZ\Publish\Core\REST\Common\Value as RestValue;
11
15 class RestRole extends RestValue
16 {
22 protected $innerRole;
23
29 public function __construct(Role $role)
30 {
31 $this->innerRole = $role;
32 }
33
41 public function __get($property)
42 {
43 return $this->innerRole->$property;
44 }
45
52 public function __set($property, $propertyValue)
53 {
54 $this->innerRole->$property = $propertyValue;
55 }
56
64 public function __isset($property)
65 {
66 return $this->innerRole->__isset($property);
67 }
68 }
eZ\Publish\API\Repository\Values\User\Role
Definition: API/Repository/Values/User/Role.php:19
eZ\Publish\Core\REST\Common\Value
Definition: Core/REST/Common/Value.php:10
eZ\Publish\Core\REST\Server\Values\RestRole
REST Role, as received by /roles/<ID>.
Definition: RestRole.php:16
eZ\Publish\Core\REST\Server\Values\RestRole\$innerRole
$innerRole
Definition: RestRole.php:22
eZ\Publish\Core\REST\Server\Values\RestRole\__isset
__isset($property)
Magic isset for routing isset calls to innerRole.
Definition: RestRole.php:64
eZ\Publish\Core\REST\Server\Values\RestRole\__get
__get($property)
Magic getter for routing get calls to innerRole.
Definition: RestRole.php:41
eZ\Publish\Core\REST\Server\Values\RestRole\__construct
__construct(Role $role)
Construct.
Definition: RestRole.php:29
eZ\Publish\Core\REST\Server\Values\RestRole\__set
__set($property, $propertyValue)
Magic set for routing set calls to innerRole.
Definition: RestRole.php:52
eZ\Publish\Core\REST\Server\Values
Definition: Core/REST/Server/Values/BookmarkList.php:9
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.