Completed
Push — middleware ( 1eef6b )
by Romain
02:33
created

FormzControllerContext   A

Complexity

Total Complexity 10

Size/Duplication

Total Lines 107
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

10 Methods

Rating   Name   Duplication   Size   Complexity  
A isDispatched() 0 4 1
A setDispatched() 0 4 1
A getExtensionName() 0 4 1
A setExtensionName() 0 4 1
A getControllerName() 0 4 1
A setControllerName() 0 4 1
A getActionName() 0 4 1
A setActionName() 0 4 1
A getArguments() 0 4 1
A setArguments() 0 4 1
1
<?php
2
namespace Romm\Formz\Controller;
3
4
use TYPO3\CMS\Core\SingletonInterface;
5
use TYPO3\CMS\Extbase\Mvc\Controller\Arguments;
6
7
class FormzControllerContext implements SingletonInterface
8
{
9
    /**
10
     * @var bool
11
     */
12
    protected $dispatched = false;
13
14
    /**
15
     * @var string
16
     */
17
    protected $extensionName;
18
19
    /**
20
     * @var string
21
     */
22
    protected $controllerName;
23
24
    /**
25
     * @var string
26
     */
27
    protected $actionName;
28
29
    /**
30
     * @var Arguments
31
     */
32
    protected $arguments;
33
34
    /**
35
     * @return boolean
36
     */
37
    public function isDispatched()
38
    {
39
        return $this->dispatched;
40
    }
41
42
    /**
43
     * @param boolean $dispatched
44
     */
45
    public function setDispatched($dispatched)
46
    {
47
        $this->dispatched = $dispatched;
48
    }
49
50
    /**
51
     * @return string
52
     */
53
    public function getExtensionName()
54
    {
55
        return $this->extensionName;
56
    }
57
58
    /**
59
     * @param string $extensionName
60
     */
61
    public function setExtensionName($extensionName)
62
    {
63
        $this->extensionName = $extensionName;
64
    }
65
66
    /**
67
     * @return string
68
     */
69
    public function getControllerName()
70
    {
71
        return $this->controllerName;
72
    }
73
74
    /**
75
     * @param string $controllerName
76
     */
77
    public function setControllerName($controllerName)
78
    {
79
        $this->controllerName = $controllerName;
80
    }
81
82
    /**
83
     * @return string
84
     */
85
    public function getActionName()
86
    {
87
        return $this->actionName;
88
    }
89
90
    /**
91
     * @param string $actionName
92
     */
93
    public function setActionName($actionName)
94
    {
95
        $this->actionName = $actionName;
96
    }
97
98
    /**
99
     * @return Arguments
100
     */
101
    public function getArguments()
102
    {
103
        return $this->arguments;
104
    }
105
106
    /**
107
     * @param Arguments $arguments
108
     */
109
    public function setArguments(Arguments $arguments)
110
    {
111
        $this->arguments = $arguments;
112
    }
113
}
114