Conditions | 2 |
Paths | 1 |
Total Lines | 6 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
21 | 3 | public function __construct(string $sourceName, string $format = 'Y-m-d', bool $timestamp = false, ?core $dateTime = null) |
|
22 | { |
||
23 | 3 | $this->sourceName = $sourceName; |
|
24 | 3 | $this->format = $format; |
|
25 | 3 | $this->timestamp = $timestamp; |
|
26 | 3 | $this->dateTime = $dateTime ?: new core(); |
|
27 | 3 | } |
|
43 |