1 | <?php |
||
7 | class StitcherException extends Exception |
||
8 | { |
||
9 | protected $title; |
||
10 | protected $body; |
||
11 | |||
12 | 2 | public function __construct(string $title, ?string $body = null) |
|
13 | { |
||
14 | 2 | parent::__construct($title); |
|
15 | |||
16 | 2 | $this->title = $title; |
|
17 | 2 | $this->body = $body; |
|
18 | 2 | } |
|
19 | |||
20 | public function title(): string |
||
24 | |||
25 | public function body(): ?string |
||
29 | } |
||
30 |