Completed
Push — master ( 47ade2...461ffe )
by João Felipe Magro
04:47
created

BaseResource::getObjectUtil()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 4
nc 2
nop 0
1
<?php
2
3
namespace Ipag\Classes;
4
5
abstract class BaseResource
6
{
7
    /**
8
     * @var Util\NumberUtil
9
     */
10
    private $numberUtil;
11
12
    /**
13
     * @var Util\ObjectUtil
14
     */
15
    private $objectUtil;
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\ObjectUtil
31
     */
32
    public function getObjectUtil()
33
    {
34
        if (is_null($this->objectUtil)) {
35
            $this->objectUtil = new Util\ObjectUtil();
36
        }
37
38
        return $this->objectUtil;
39
    }
40
}
41