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

TraitDefinition::compile()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 4
ccs 0
cts 2
cp 0
crap 2
rs 10
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