NullNode   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 2
dl 0
loc 28
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getCssResult() 0 4 1
A getJavaScriptResult() 0 4 1
A getPhpResult() 0 4 1
1
<?php
2
/*
3
 * 2017 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\Parser\Node;
15
16
use Romm\Formz\Condition\Processor\DataObject\PhpConditionDataObject;
17
use Romm\Formz\Service\Traits\SelfInstantiateTrait;
18
use TYPO3\CMS\Core\SingletonInterface;
19
20
class NullNode extends AbstractNode implements SingletonInterface
21
{
22
    use SelfInstantiateTrait;
23
24
    /**
25
     * @inheritdoc
26
     */
27
    public function getCssResult()
28
    {
29
        return [];
30
    }
31
32
    /**
33
     * @inheritdoc
34
     */
35
    public function getJavaScriptResult()
36
    {
37
        return [];
38
    }
39
40
    /**
41
     * @inheritdoc
42
     */
43
    public function getPhpResult(PhpConditionDataObject $dataObject)
44
    {
45
        return true;
46
    }
47
}
48