Completed
Push — master ( fff0f0...89663a )
by De Cramer
02:26
created

ProviderListner::getProvider()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
ccs 2
cts 2
cp 1
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: olive
5
 * Date: 12/03/2017
6
 * Time: 12:36
7
 */
8
9
namespace eXpansion\Framework\Core\Model;
10
11
/**
12
 * Class ProviderListner
13
 *
14
 * @package eXpansion\Framework\Core\Model
15
 */
16
class ProviderListner
17
{
18
    /** @var string */
19
    protected $eventName;
20
21
    /** @var string */
22
    protected $provider;
23
24
    /** @var string */
25
    protected $method;
26
27
    /**
28
     * ProviderListner constructor.
29
     *
30
     * @param string $eventName
31
     * @param string $provider
32
     * @param string $method
33
     */
34 41
    public function __construct($eventName, $provider, $method)
35
    {
36 41
        $this->eventName = $eventName;
37 41
        $this->provider = $provider;
38 41
        $this->method = $method;
39 41
    }
40
41
    /**
42
     * @return mixed
43
     */
44 2
    public function getEventName()
45
    {
46 2
        return $this->eventName;
47
    }
48
49
    /**
50
     * @param mixed $eventName
51
     */
52 1
    public function setEventName($eventName)
53
    {
54 1
        $this->eventName = $eventName;
55 1
    }
56
57
    /**
58
     * @return mixed
59
     */
60 1
    public function getProvider()
61
    {
62 1
        return $this->provider;
63
    }
64
65
    /**
66
     * @param mixed $provider
67
     */
68 1
    public function setProvider($provider)
69
    {
70 1
        $this->provider = $provider;
71 1
    }
72
73
    /**
74
     * @return mixed
75
     */
76 2
    public function getMethod()
77
    {
78 2
        return $this->method;
79
    }
80
81
    /**
82
     * @param mixed $method
83
     */
84 1
    public function setMethod($method)
85
    {
86 1
        $this->method = $method;
87 1
    }
88
}
89