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

ParameterModel   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
dl 0
loc 25
c 0
b 0
f 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A isVariadic() 0 3 1
A setIsVariadic() 0 3 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\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