1 | <?php |
||
7 | class PolicyEnforcement |
||
8 | { |
||
9 | /** |
||
10 | * @var string |
||
11 | */ |
||
12 | protected $action; |
||
13 | |||
14 | /** |
||
15 | * @var string|null |
||
16 | */ |
||
17 | protected $reason; |
||
18 | |||
19 | /** |
||
20 | * PolicyEnforcement constructor. |
||
21 | */ |
||
22 | 1 | public function __construct(string $action, ?string $reason = null) |
|
27 | |||
28 | 1 | public function getAction(): string |
|
32 | |||
33 | 1 | public function getReason(): ?string |
|
37 | |||
38 | /** |
||
39 | * @return \Kerox\Messenger\Model\Callback\PolicyEnforcement |
||
40 | */ |
||
41 | 1 | public static function create(array $callbackData): self |
|
47 | } |
||
48 |