Total Complexity | 7 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | trait MicrotimeTrait |
||
8 | { |
||
9 | 34 | public function setWhenAt(\DateTime $whenAt) |
|
10 | { |
||
11 | 34 | parent::setWhenAt($whenAt); |
|
12 | |||
13 | 34 | return $this->setWhenUs(Util::getMicrotimeIntegerFormat($whenAt)); |
|
14 | } |
||
15 | |||
16 | /** |
||
17 | * @return \DateTime|null |
||
18 | */ |
||
19 | 50 | public function getWhenAt() |
|
27 | } |
||
28 | |||
29 | /** |
||
30 | * @param string |
||
31 | */ |
||
32 | 36 | public function setWhenUs($whenUs) |
|
33 | { |
||
34 | 36 | $this->whenUs = $whenUs; |
|
|
|||
35 | |||
36 | 36 | return $this; |
|
37 | } |
||
38 | |||
39 | /** |
||
40 | * @param string |
||
41 | */ |
||
42 | 47 | public function getWhenUs() |
|
45 | } |
||
46 | } |
||
47 |