Total Complexity | 5 |
Total Lines | 69 |
Duplicated Lines | 0 % |
Coverage | 85.71% |
Changes | 0 |
1 | <?php |
||
7 | class PropertyMetadata implements PropertyMetadataInterface |
||
8 | { |
||
9 | /** |
||
10 | * @var string |
||
11 | */ |
||
12 | private $name; |
||
13 | /** |
||
14 | * @var bool |
||
15 | */ |
||
16 | private $virtual; |
||
17 | /** |
||
18 | * @var string|null |
||
19 | */ |
||
20 | private $setter; |
||
21 | /** |
||
22 | * @var string|null |
||
23 | */ |
||
24 | private $getter; |
||
25 | |||
26 | /** |
||
27 | * @param string $name |
||
28 | * @param bool $virtual |
||
29 | * @param null|string $setter |
||
30 | * @param null|string $getter |
||
31 | * |
||
32 | * @SuppressWarnings(PHPMD.BooleanArgumentFlag) |
||
33 | */ |
||
34 | 13 | public function __construct( |
|
44 | 13 | } |
|
45 | |||
46 | /** |
||
47 | * @return string |
||
48 | */ |
||
49 | public function getName() |
||
50 | { |
||
51 | return $this->name; |
||
52 | } |
||
53 | |||
54 | /** |
||
55 | * @return bool |
||
56 | */ |
||
57 | 12 | public function isVirtual() |
|
60 | } |
||
61 | |||
62 | /** |
||
63 | * @return null|string |
||
64 | */ |
||
65 | 8 | public function getSetter() |
|
68 | } |
||
69 | |||
70 | /** |
||
71 | * @return null|string |
||
72 | */ |
||
73 | 6 | public function getGetter() |
|
78 |