| Total Complexity | 4 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | abstract class BaseResource |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var Util\NumberUtil |
||
| 9 | */ |
||
| 10 | private $numberUtil; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var Util\DateUtil |
||
| 14 | */ |
||
| 15 | private $dateUtil; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @return Util\NumberUtil |
||
| 19 | */ |
||
| 20 | public function getNumberUtil() |
||
| 21 | { |
||
| 22 | if (is_null($this->numberUtil)) { |
||
| 23 | $this->numberUtil = new Util\NumberUtil(); |
||
| 24 | } |
||
| 25 | |||
| 26 | return $this->numberUtil; |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @return Util\DateUtil |
||
| 31 | */ |
||
| 32 | public function getDateUtil() |
||
| 39 | } |
||
| 40 | } |
||
| 41 |