Code Duplication    Length = 54-54 lines in 2 locations

lib/Cerbere/Event/CerbereDoActionEvent.php 1 location

@@ 31-84 (lines=54) @@
28
 * Class CerbereDoActionEvent
29
 * @package Cerbere\Event
30
 */
31
class CerbereDoActionEvent extends CerbereEvent
32
{
33
    /**
34
     * @var ActionInterface
35
     */
36
    protected $action;
37
38
    /**
39
     * @var Project
40
     */
41
    protected $project;
42
43
    /**
44
     * @param ActionInterface $action
45
     * @param Project $project
46
     */
47
    public function __construct(ActionInterface $action, Project $project)
48
    {
49
        $this->action = $action;
50
        $this->project = $project;
51
    }
52
53
    /**
54
     * @return ActionInterface
55
     */
56
    public function getAction()
57
    {
58
        return $this->action;
59
    }
60
61
    /**
62
     * @param ActionInterface $action
63
     */
64
    public function setAction($action)
65
    {
66
        $this->action = $action;
67
    }
68
69
    /**
70
     * @return Project
71
     */
72
    public function getProject()
73
    {
74
        return $this->project;
75
    }
76
77
    /**
78
     * @param Project $project
79
     */
80
    public function setProject($project)
81
    {
82
        $this->project = $project;
83
    }
84
}
85

lib/Cerbere/Event/CerbereDoneActionEvent.php 1 location

@@ 31-84 (lines=54) @@
28
 * Class CerbereDoneActionEvent
29
 * @package Cerbere\Event
30
 */
31
class CerbereDoneActionEvent extends CerbereEvent
32
{
33
    /**
34
     * @var ActionInterface
35
     */
36
    protected $action;
37
38
    /**
39
     * @var Project
40
     */
41
    protected $project;
42
43
    /**
44
     * @param ActionInterface $action
45
     * @param Project $project
46
     */
47
    public function __construct(ActionInterface $action, Project $project)
48
    {
49
        $this->action = $action;
50
        $this->project = $project;
51
    }
52
53
    /**
54
     * @return ActionInterface
55
     */
56
    public function getAction()
57
    {
58
        return $this->action;
59
    }
60
61
    /**
62
     * @param ActionInterface $action
63
     */
64
    public function setAction($action)
65
    {
66
        $this->action = $action;
67
    }
68
69
    /**
70
     * @return Project
71
     */
72
    public function getProject()
73
    {
74
        return $this->project;
75
    }
76
77
    /**
78
     * @param Project $project
79
     */
80
    public function setProject($project)
81
    {
82
        $this->project = $project;
83
    }
84
}
85