Completed
Push — master ( 5cd7db...4c6168 )
by Sebastien
02:32
created

CerbereDoActionEvent   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 54
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 54
wmc 5
lcom 0
cbo 1
rs 10

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getAction() 0 4 1
A setAction() 0 4 1
A getProject() 0 4 1
A setProject() 0 4 1
1
<?php
2
3
namespace Cerbere\Event;
4
5
use Cerbere\Action\ActionInterface;
6
use Cerbere\Model\Project;
7
8
/**
9
 * Class CerbereDoActionEvent
10
 * @package Cerbere\Event
11
 */
12
class CerbereDoActionEvent extends CerbereEvent
13
{
14
    /**
15
     * @var ActionInterface
16
     */
17
    protected $action;
18
19
    /**
20
     * @var Project
21
     */
22
    protected $project;
23
24
    /**
25
     * @param ActionInterface $action
26
     * @param Project $project
27
     */
28
    public function __construct(ActionInterface $action, Project $project)
29
    {
30
        $this->action = $action;
31
        $this->project = $project;
32
    }
33
34
    /**
35
     * @return ActionInterface
36
     */
37
    public function getAction()
38
    {
39
        return $this->action;
40
    }
41
42
    /**
43
     * @param ActionInterface $action
44
     */
45
    public function setAction($action)
46
    {
47
        $this->action = $action;
48
    }
49
50
    /**
51
     * @return \Cerbere\Model\Project
52
     */
53
    public function getProject()
54
    {
55
        return $this->project;
56
    }
57
58
    /**
59
     * @param \Cerbere\Model\Project $project
60
     */
61
    public function setProject($project)
62
    {
63
        $this->project = $project;
64
    }
65
}
66