ParameterModel::isVariadic()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
c 0
b 0
f 0
rs 10
cc 1
eloc 1
nc 1
nop 0
1
<?php
2
3
/**
4
 * This file is part of PhpUnitGen.
5
 *
6
 * (c) 2017-2018 Paul Thébaud <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE.md
9
 * file that was distributed with this source code.
10
 */
11
12
namespace PhpUnitGen\Model;
13
14
use PhpUnitGen\Model\ModelInterface\ParameterModelInterface;
15
use PhpUnitGen\Model\PropertyTrait\NameTrait;
16
use PhpUnitGen\Model\PropertyTrait\NodeTrait;
17
use PhpUnitGen\Model\PropertyTrait\TypeTrait;
18
use PhpUnitGen\Model\PropertyTrait\ValueTrait;
19
20
/**
21
 * Class ParameterModel.
22
 *
23
 * @author     Paul Thébaud <[email protected]>.
24
 * @copyright  2017-2018 Paul Thébaud <[email protected]>.
25
 * @license    https://opensource.org/licenses/MIT The MIT license.
26
 * @link       https://github.com/paul-thebaud/phpunit-generator
27
 * @since      Class available since Release 2.0.0.
28
 */
29
class ParameterModel implements ParameterModelInterface
30
{
31
    use NameTrait;
32
    use TypeTrait;
33
    use ValueTrait;
34
    use NodeTrait;
35
36
    /**
37
     * @var bool $isVariadic A boolean describing if it is variadic.
38
     */
39
    private $isVariadic = false;
40
41
    /**
42
     * {@inheritdoc}
43
     */
44
    public function setIsVariadic(bool $isVariadic): void
45
    {
46
        $this->isVariadic = $isVariadic;
47
    }
48
49
    /**
50
     * {@inheritdoc}
51
     */
52
    public function isVariadic(): bool
53
    {
54
        return $this->isVariadic;
55
    }
56
}
57