Completed
Push — master ( 1a9bbe...afef11 )
by Дмитрий
03:38
created

TraitDefinition   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 34
ccs 0
cts 7
cp 0
rs 10
wmc 3
lcom 0
cbo 1

3 Methods

Rating   Name   Duplication   Size   Complexity  
A compile() 0 4 1
A getFilepath() 0 4 1
A setFilepath() 0 4 1
1
<?php
2
/**
3
 * @author Patsura Dmitry https://github.com/ovr <[email protected]>
4
 */
5
6
namespace PHPSA\Definition;
7
8
use PHPSA\Context;
9
10
class TraitDefinition extends ParentDefinition
11
{
12
    /**
13
     * @var string
14
     */
15
    protected $filepath;
16
17
    /**
18
     * Compile the definition
19
     *
20
     * @param Context $context
21
     * @return boolean
22
     */
23
    public function compile(Context $context)
24
    {
25
        return true;
26
    }
27
28
    /**
29
     * @return string
30
     */
31
    public function getFilepath()
32
    {
33
        return $this->filepath;
34
    }
35
36
    /**
37
     * @param string $filepath
38
     */
39
    public function setFilepath($filepath)
40
    {
41
        $this->filepath = $filepath;
42
    }
43
}
44