StaticTrait::setIsStatic()   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 1
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\PropertyTrait;
13
14
/**
15
 * Trait StaticTrait.
16
 *
17
 * @author     Paul Thébaud <[email protected]>.
18
 * @copyright  2017-2018 Paul Thébaud <[email protected]>.
19
 * @license    https://opensource.org/licenses/MIT The MIT license.
20
 * @link       https://github.com/paul-thebaud/phpunit-generator
21
 * @since      Class available since Release 2.0.0.
22
 */
23
trait StaticTrait
24
{
25
    /**
26
     * @var bool $isStatic A boolean describing if it is static.
27
     */
28
    protected $isStatic = false;
29
30
    /**
31
     * @param bool $isStatic The new static value to set.
32
     */
33
    public function setIsStatic(bool $isStatic): void
34
    {
35
        $this->isStatic = $isStatic;
36
    }
37
38
    /**
39
     * @return bool True if it is static.
40
     */
41
    public function isStatic(): bool
42
    {
43
        return $this->isStatic;
44
    }
45
}
46