Completed
Pull Request — master (#22)
by Matthew
06:23 queued 04:03
created

UtilityAwareTrait   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 77
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 77
rs 10
c 0
b 0
f 0
wmc 6
lcom 0
cbo 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A setFractalUtility() 0 4 1
A getFractalUtility() 0 4 1
A setRedisUtility() 0 4 1
A getRedisUtility() 0 4 1
A setDateValidationUtility() 0 4 1
A getDateValidationUtility() 0 4 1
1
<?php
2
3
namespace Ps2alerts\Api\Contract;
4
5
use Ps2alerts\Api\Utility\DateValidationUtility;
6
use Ps2alerts\Api\Utility\FractalUtility;
7
use Ps2alerts\Api\Utility\RedisUtility;
8
9
trait UtilityAwareTrait
10
{
11
    /**
12
     * @var FractalUtility
13
     */
14
    protected $fractalUtility;
15
16
    /**
17
     * @var RedisUtility
18
     */
19
    protected $redisUtility;
20
21
    /**
22
     * @var DateValidationUtility
23
     */
24
    protected $dateValidationUtility;
25
26
    /**
27
     * Sets the Fractal Utility
28
     *
29
     * @param FractalUtility $class
30
     */
31
    public function setFractalUtility(FractalUtility $class)
32
    {
33
        $this->fractalUtility = $class;
34
    }
35
36
    /**
37
     * Gets the Fractal Utility
38
     *
39
     * @return FractalUtility
40
     */
41
    public function getFractalUtility()
42
    {
43
        return $this->fractalUtility;
44
    }
45
46
    /**
47
     * Sets the Redis Utility
48
     *
49
     * @param RedisUtility $class
50
     */
51
    public function setRedisUtility(RedisUtility $class)
52
    {
53
        $this->redisUtility = $class;
54
    }
55
56
    /**
57
     * Gets the Redis Utility
58
     *
59
     * @return RedisUtility
60
     */
61
    public function getRedisUtility()
62
    {
63
        return $this->redisUtility;
64
    }
65
66
    /**
67
     * Sets the Redis Utility
68
     *
69
     * @param DateValidationUtility $class
70
     */
71
    public function setDateValidationUtility(DateValidationUtility $class)
72
    {
73
        $this->dateValidationUtility = $class;
74
    }
75
76
    /**
77
     * Gets the Redis Utility
78
     *
79
     * @return DateValidationUtility
80
     */
81
    public function getDateValidationUtility()
82
    {
83
        return $this->dateValidationUtility;
84
    }
85
}
86