Total Complexity | 4 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
21 | class T3Datetime implements \Aimeos\Base\Criteria\Plugin\Iface |
||
22 | { |
||
23 | /** |
||
24 | * Translates ISO dates into seconds relative to the epoch. |
||
25 | * |
||
26 | * @param string $value ISO date string (YYYY-MM-DD HH:mm:ss) |
||
27 | * @param mixed $type Expected value type |
||
28 | * @return integer Seconds relative to the epoch |
||
29 | */ |
||
30 | public function translate( $value, $type = null ) |
||
33 | } |
||
34 | |||
35 | |||
36 | /** |
||
37 | * Reverses the translation from seconds relative to the epoch to the ISO date string (YYYY-MM-DD HH:mm:ss). |
||
38 | * |
||
39 | * @param integer $value Seconds relative to the epoch |
||
40 | * @param mixed $type Expected value type |
||
41 | * @return string ISO date string (YYYY-MM-DD HH:mm:ss) |
||
42 | */ |
||
43 | public function reverse( $value, $type = null ) |
||
48 |