Completed
Push — develop ( 67e161...8b0772 )
by Paul
05:50
created

InPhpFileTrait   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getPhpFileModel() 0 3 1
A setPhpFileModel() 0 3 1
1
<?php
2
3
namespace PhpUnitGen\Model\PropertyTrait;
4
5
use PhpUnitGen\Model\ModelInterface\PhpFileModelInterface;
6
7
/**
8
 * Trait InPhpFileTrait.
9
 *
10
 * @author     Paul Thébaud <[email protected]>.
11
 * @copyright  2017-2018 Paul Thébaud <[email protected]>.
12
 * @license    https://opensource.org/licenses/MIT The MIT license.
13
 * @link       https://github.com/paul-thebaud/phpunit-generator
14
 * @since      Class available since Release 2.0.0.
15
 */
16
trait InPhpFileTrait
17
{
18
    /**
19
     * @var PhpFileModelInterface $phpFileModel A php file.
20
     */
21
    protected $phpFileModel;
22
23
    /**
24
     * @param PhpFileModelInterface $phpFileModel The new php file to be set.
25
     */
26
    public function setPhpFileModel(PhpFileModelInterface $phpFileModel): void
27
    {
28
        $this->phpFileModel = $phpFileModel;
29
    }
30
31
    /**
32
     * @return PhpFileModelInterface The current php file.
33
     */
34
    public function getPhpFileModel(): PhpFileModelInterface
35
    {
36
        return $this->phpFileModel;
37
    }
38
}
39