| 1 | <?php |
||
| 19 | class RoleCopyStruct extends APIRoleCopyStruct |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * Policies associated with the role. |
||
| 23 | * |
||
| 24 | * @var \eZ\Publish\API\Repository\Values\User\PolicyCreateStruct[] |
||
| 25 | */ |
||
| 26 | protected $policies = []; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Returns policies associated with the role. |
||
| 30 | * |
||
| 31 | * @return \eZ\Publish\API\Repository\Values\User\PolicyCreateStruct[] |
||
| 32 | */ |
||
| 33 | public function getPolicies() |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Adds a policy to this role. |
||
| 40 | */ |
||
| 41 | public function addPolicy(APIPolicyCreateStruct $policyCopy) |
||
| 45 | } |
||
| 46 |