Passed
Push — develop ( 45600c...ff69f6 )
by Paul
03:16
created

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