Completed
Push — develop ( 1b34c6...481302 )
by Paul
02:47
created

ParameterModel::setIsVariadic()   A

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 1
1
<?php
2
3
namespace PhpUnitGen\Model;
4
5
use PhpUnitGen\Model\ModelInterface\ParameterModelInterface;
6
use PhpUnitGen\Model\PropertyTrait\NameTrait;
7
use PhpUnitGen\Model\PropertyTrait\NodeTrait;
8
use PhpUnitGen\Model\PropertyTrait\TypeTrait;
9
use PhpUnitGen\Model\PropertyTrait\ValueTrait;
10
11
/**
12
 * Class ParameterModel.
13
 *
14
 * @author     Paul Thébaud <[email protected]>.
15
 * @copyright  2017-2018 Paul Thébaud <[email protected]>.
16
 * @license    https://opensource.org/licenses/MIT The MIT license.
17
 * @link       https://github.com/paul-thebaud/phpunit-generator
18
 * @since      Class available since Release 2.0.0.
19
 */
20
class ParameterModel implements ParameterModelInterface
21
{
22
    use NameTrait;
23
    use TypeTrait;
24
    use ValueTrait;
25
    use NodeTrait;
26
27
    /**
28
     * @var bool $isVariadic A boolean describing if it is variadic.
29
     */
30
    private $isVariadic = false;
31
32
    /**
33
     * {@inheritdoc}
34
     */
35
    public function setIsVariadic(bool $isVariadic): void
36
    {
37
        $this->isVariadic = $isVariadic;
38
    }
39
40
    /**
41
     * {@inheritdoc}
42
     */
43
    public function isVariadic(): bool
44
    {
45
        return $this->isVariadic;
46
    }
47
}
48