Completed
Branch conditions-refactoring (7efd7c)
by Romain
01:49
created

PhpConditionDataObject   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 44
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getForm() 0 4 1
A setForm() 0 4 1
A getFormValidator() 0 4 1
A setFormValidator() 0 4 1
1
<?php
2
/*
3
 * 2016 Romain CANON <[email protected]>
4
 *
5
 * This file is part of the TYPO3 Formz project.
6
 * It is free software; you can redistribute it and/or modify it
7
 * under the terms of the GNU General Public License, either
8
 * version 3 of the License, or any later version.
9
 *
10
 * For the full copyright and license information, see:
11
 * http://www.gnu.org/licenses/gpl-3.0.html
12
 */
13
14
namespace Romm\Formz\Condition\Processor\DataObject;
15
16
use Romm\Formz\Form\FormInterface;
17
use Romm\Formz\Validation\Validator\Form\AbstractFormValidator;
18
19
class PhpConditionDataObject
20
{
21
    /**
22
     * @var FormInterface
23
     */
24
    protected $form;
25
26
    /**
27
     * @var AbstractFormValidator
28
     */
29
    protected $formValidator;
30
31
    /**
32
     * @return FormInterface
33
     */
34
    public function getForm()
35
    {
36
        return $this->form;
37
    }
38
39
    /**
40
     * @param FormInterface $form
41
     */
42
    public function setForm($form)
43
    {
44
        $this->form = $form;
45
    }
46
47
    /**
48
     * @return AbstractFormValidator
49
     */
50
    public function getFormValidator()
51
    {
52
        return $this->formValidator;
53
    }
54
55
    /**
56
     * @param AbstractFormValidator $formValidator
57
     */
58
    public function setFormValidator($formValidator)
59
    {
60
        $this->formValidator = $formValidator;
61
    }
62
}
63