Completed
Push — middleware-wip ( 106169...2ebda9 )
by Romain
02:43
created

FormzControllerContext::getRequest()   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
     * @return boolean
27
     */
28
    public function isDispatched()
29
    {
30
        return $this->dispatched;
31
    }
32
33
    /**
34
     * @param boolean $dispatched
35
     */
36
    public function setDispatched($dispatched)
37
    {
38
        $this->dispatched = $dispatched;
39
    }
40
41
    /**
42
     * @return Request
43
     */
44
    public function getRequest()
45
    {
46
        return $this->request;
47
    }
48
49
    /**
50
     * @param Request $request
51
     */
52
    public function setRequest(Request $request)
53
    {
54
        $this->request = $request;
55
    }
56
57
    /**
58
     * @return Arguments
59
     */
60
    public function getArguments()
61
    {
62
        return $this->arguments;
63
    }
64
65
    /**
66
     * @param Arguments $arguments
67
     */
68
    public function setArguments(Arguments $arguments)
69
    {
70
        $this->arguments = $arguments;
71
    }
72
}
73