Completed
Push — middleware-wip ( d7f9f5...0405e5 )
by Romain
03:06
created

FormzControllerContext::setVendorName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 4
rs 10
c 1
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
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
     * @todo
27
     *
28
     * @var string
29
     */
30
    protected $vendorName;
31
32
    /**
33
     * @return bool
34
     */
35
    public function isDispatched()
36
    {
37
        return $this->dispatched;
38
    }
39
40
    /**
41
     * @param bool $dispatched
42
     */
43
    public function setDispatched($dispatched)
44
    {
45
        $this->dispatched = $dispatched;
46
    }
47
48
    /**
49
     * @return Request
50
     */
51
    public function getRequest()
52
    {
53
        return $this->request;
54
    }
55
56
    /**
57
     * @param Request $request
58
     */
59
    public function setRequest(Request $request)
60
    {
61
        $this->request = $request;
62
    }
63
64
    /**
65
     * @return Arguments
66
     */
67
    public function getArguments()
68
    {
69
        return $this->arguments;
70
    }
71
72
    /**
73
     * @param Arguments $arguments
74
     */
75
    public function setArguments(Arguments $arguments)
76
    {
77
        $this->arguments = $arguments;
78
    }
79
80
    /**
81
     * @return string
82
     */
83
    public function getVendorName()
84
    {
85
        return $this->vendorName;
86
    }
87
88
    /**
89
     * @param string $vendorName
90
     */
91
    public function setVendorName($vendorName)
92
    {
93
        $this->vendorName = $vendorName;
94
    }
95
}
96