Completed
Push — middleware-wip ( 21e3dc...d468d0 )
by Romain
02:52
created

FormzControllerContext::getArguments()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
namespace Romm\Formz\Controller;
3
4
use TYPO3\CMS\Core\SingletonInterface;
5
use TYPO3\CMS\Extbase\Mvc\Controller\Arguments;
6
use TYPO3\CMS\Extbase\Mvc\Web\Request;
7
8
class FormzControllerContext implements SingletonInterface
9
{
10
    /**
11
     * @var bool
12
     */
13
    protected $dispatched = false;
14
15
    /**
16
     * @var Request
17
     */
18
    protected $request;
19
20
    /**
21
     * @var Arguments
22
     */
23
    protected $arguments;
24
25
    /**
26
     * @var array
27
     */
28
    protected $settings = [];
29
30
    /**
31
     * @todo
32
     *
33
     * @var string
34
     */
35
    protected $vendorName;
36
37
    /**
38
     * @return bool
39
     */
40
    public function isDispatched()
41
    {
42
        return $this->dispatched;
43
    }
44
45
    /**
46
     * @param bool $dispatched
47
     */
48
    public function setDispatched($dispatched)
49
    {
50
        $this->dispatched = $dispatched;
51
    }
52
53
    /**
54
     * @return Request
55
     */
56
    public function getRequest()
57
    {
58
        return $this->request;
59
    }
60
61
    /**
62
     * @param Request $request
63
     */
64
    public function setRequest(Request $request)
65
    {
66
        $this->request = $request;
67
    }
68
69
    /**
70
     * @return Arguments
71
     */
72
    public function getArguments()
73
    {
74
        return $this->arguments;
75
    }
76
77
    /**
78
     * @param Arguments $arguments
79
     */
80
    public function setArguments(Arguments $arguments)
81
    {
82
        $this->arguments = $arguments;
83
    }
84
85
    /**
86
     * @return array
87
     */
88
    public function getSettings()
89
    {
90
        return $this->settings;
91
    }
92
93
    /**
94
     * @param array $settings
95
     */
96
    public function setSettings(array $settings)
97
    {
98
        $this->settings = $settings;
99
    }
100
101
    /**
102
     * @return string
103
     */
104
    public function getVendorName()
105
    {
106
        return $this->vendorName;
107
    }
108
109
    /**
110
     * @param string $vendorName
111
     */
112
    public function setVendorName($vendorName)
113
    {
114
        $this->vendorName = $vendorName;
115
    }
116
}
117