Total Complexity | 4 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | class ReturnOutcome implements OutcomeInterface |
||
11 | { |
||
12 | /** |
||
13 | * @var array |
||
14 | */ |
||
15 | private $payload; |
||
16 | |||
17 | public function __construct(string $value, string $type, string $class) |
||
18 | { |
||
19 | $this->payload = [ |
||
20 | 'value' => $value, |
||
21 | 'type' => $type, |
||
22 | 'class' => $class |
||
23 | ]; |
||
24 | } |
||
25 | |||
26 | public function getType(): string |
||
27 | { |
||
28 | return self::TYPE_RETURN; |
||
29 | } |
||
30 | |||
31 | public function getPayload(): array |
||
34 | } |
||
35 | |||
36 | public function __tostring(): string |
||
39 | } |
||
40 | } |
||
41 |