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