Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
34 | public function getValue() |
||
35 | { |
||
36 | // if its not a unix timestamp, try to convert "strtotime("1 hour 30 minutes", 0);" |
||
37 | if (!is_numeric($this->_duration)) { |
||
38 | $this->_duration = strtotime($this->_duration, 0); |
||
39 | } |
||
40 | |||
41 | return $this->timeToIso8601Duration($this->_duration); |
||
42 | } |
||
43 | |||
72 | } |