ClassConfig::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
1
<?php
2
3
namespace HelloWordPl\SimpleEntityGeneratorBundle\Lib;
4
5
use JMS\Serializer\Annotation\SerializedName;
6
use JMS\Serializer\Annotation\Type;
7
use Symfony\Component\Validator\Constraints as Assert;
8
9
/**
10
 * Class config, additional parameters
11
 *
12
 * @author Sławomir Kania <[email protected]>
13
 */
14
class ClassConfig
15
{
16
17
    /**
18
     * @var boolean
19
     * @Type("boolean")
20
     * @Assert\Type("boolean")
21
     * @SerializedName("no_interface")
22
     */
23
    private $noInterface = false;
24
25
    /**
26
     * @var boolean
27
     * @Type("boolean")
28
     * @Assert\Type("boolean")
29
     * @SerializedName("no_phpunit_class")
30
     */
31
    private $noPHPUnitClass = false;
32
33
    /**
34
     * @param boolean $noInterface
35
     * @param boolean $noPHPUnitClass
36
     */
37
    public function __construct($noInterface = false, $noPHPUnitClass = false)
38
    {
39
        $this->noInterface = $noInterface;
40
        $this->noPHPUnitClass = $noPHPUnitClass;
41
    }
42
43
    /**
44
     * @return boolean
45
     */
46
    public function isNoInterface()
47
    {
48
        return $this->noInterface;
49
    }
50
51
    /**
52
     * @return boolean
53
     */
54
    public function isNoPHPUnitClass()
55
    {
56
        return $this->noPHPUnitClass;
57
    }
58
59
    /**
60
     * @param boolean $noInterface
61
     */
62
    public function setNoInterface($noInterface)
63
    {
64
        $this->noInterface = $noInterface;
65
    }
66
67
    /**
68
     * @param boolean $noPHPUnitClass
69
     */
70
    public function setNoPHPUnitClass($noPHPUnitClass)
71
    {
72
        $this->noPHPUnitClass = $noPHPUnitClass;
73
    }
74
}
75