Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
40 | public function __construct($itemKey, \DateTime $itemDate) |
||
41 | { |
||
42 | if(is_string($itemKey)){ |
||
43 | $this->itemKey = $itemKey; |
||
44 | $this->itemDate = $itemDate; |
||
45 | }else{ |
||
46 | throw new phpFastCacheInvalidArgumentException(sprintf('$itemKey must be a string, got "%s" instead', gettype($itemKey))); |
||
47 | } |
||
48 | } |
||
49 | |||
65 | } |