Total Complexity | 4 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
10 | class Accept |
||
11 | { |
||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | private $format; |
||
16 | |||
17 | /** |
||
18 | * Accept constructor. |
||
19 | * |
||
20 | * @param string $format |
||
21 | */ |
||
22 | 22 | private function __construct($format) |
|
25 | 22 | } |
|
26 | |||
27 | /** |
||
28 | * @param $format |
||
29 | * |
||
30 | * @return Accept |
||
31 | */ |
||
32 | 22 | public static function create($format) |
|
35 | } |
||
36 | |||
37 | /** |
||
38 | * @return mixed|string |
||
39 | */ |
||
40 | 22 | public function toString() |
|
54 |