Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Response.php
1<?php
2
4
6{
10 public function getPermission(): int | string
11 {
12 return $this->data['permission'] ?? \CListPermissions::ACCESS_DENIED;
13 }
14
19 public function setPermission(int | string $permission): static
20 {
21 $this->data['permission'] = $permission;
22
23 return $this;
24 }
25
30 public function fillFromResponse(Response $response): static
31 {
32 $this
33 ->setPermission($response->getPermission())
34 ->addErrors($response->getErrors())
35 ;
36
37 return $this;
38 }
39}
setPermission(int|string $permission)
Definition Response.php:19
fillFromResponse(Response $response)
Definition Response.php:30