1 | <?php |
||
7 | abstract class AbstractApiProblem implements ApiProblemInterface |
||
8 | { |
||
9 | /** |
||
10 | * @var string |
||
11 | */ |
||
12 | private $title; |
||
13 | |||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | private $detail; |
||
18 | |||
19 | /** |
||
20 | * @var string|null |
||
21 | */ |
||
22 | private $instance; |
||
23 | |||
24 | /** |
||
25 | * @param string $title |
||
26 | * @param string|null $detail |
||
27 | * @param string|null $instance |
||
28 | */ |
||
29 | 2 | public function __construct(string $title, string $detail = null, string $instance = null) |
|
35 | |||
36 | /** |
||
37 | * @return array |
||
38 | */ |
||
39 | 2 | public function getHeaders(): array |
|
43 | |||
44 | /** |
||
45 | * @return string |
||
46 | */ |
||
47 | 2 | public function getTitle(): string |
|
51 | |||
52 | /** |
||
53 | * @return string|null |
||
54 | */ |
||
55 | 2 | public function getDetail() |
|
59 | |||
60 | /** |
||
61 | * @return string|null |
||
62 | */ |
||
63 | 2 | public function getInstance() |
|
67 | } |
||
68 |