| 1 | <?php |
||
| 3 | class Nip_Helper_Date extends Nip\Helpers\AbstractHelper |
||
|
|
|||
| 4 | { |
||
| 5 | |||
| 6 | |||
| 7 | public function validate($date, $format) |
||
| 17 | |||
| 18 | public function calculateAge($date1, $date2 = false) |
||
| 31 | |||
| 32 | public function parseUnix($date, $format) |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Singleton |
||
| 39 | * |
||
| 40 | * @return Nip_Helper_Date |
||
| 41 | */ |
||
| 42 | static public function instance() |
||
| 50 | |||
| 51 | } |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.