push
travis-ci
225 of 225 new or added lines in 14 files covered. (100.0%)
684 of 687 relevant lines covered (99.56%)
36.09 hits per line
1 |
<?php
|
|
2 |
|
|
3 |
namespace OpenClassrooms\UseCase\Application\Annotations; |
|
4 |
|
|
5 |
/**
|
|
6 |
* @author Romain Kuzniak <romain.kuzniak@turn-it-up.org> |
|
7 |
* @Annotation |
|
8 |
*/ |
|
9 |
class Cache |
|
10 |
{ |
|
11 |
|
|
12 |
/**
|
|
13 |
* @var string |
|
14 |
*/ |
45 all except ✔ |
15 |
public $namespacePrefix; |
45 all except ✔ |
16 |
|
|
17 |
/**
|
138 all except ✔ |
18 |
* @var string |
171 all except ✔ |
19 |
*/ |
99 all except ✔ |
20 |
public $namespaceAttribute; |
69 all except ✔ |
21 |
|
54 all except ✔ |
22 |
/**
|
132 all except ✔ |
23 |
* @var int |
138 all except ✔ |
24 |
*/ |
45 all except ✔ |
25 |
public $lifetime; |
237 all except ✔ |
26 |
|
150 all except ✔ |
27 |
/**
|
399 all except ✔ |
28 |
* @return string |
213 all except ✔ |
29 |
*/ |
126 all except ✔ |
30 |
public function getNamespaceAttribute() |
21 all except ✔ |
31 |
{ |
18 all except ✔ |
32 |
return $this->namespaceAttribute; |
75 all except ✔ |
33 |
} |
75 all except ✔ |
34 |
|
54 all except ✔ |
35 |
/**
|
75 all except ✔ |
36 |
* @return string |
87 all except ✔ |
37 |
*/ |
153 all except ✔ |
38 |
public function getNamespacePrefix() |
171 all except ✔ |
39 |
{ |
114 all except ✔ |
40 |
return $this->namespacePrefix; |
216 all except ✔ |
41 |
} |
156 all except ✔ |
42 |
|
144 all except ✔ |
43 |
/**
|
51 all except ✔ |
44 |
* @return int |
183 all except ✔ |
45 |
*/ |
225 all except ✔ |
46 |
public function getLifetime() |
105 all except ✔ |
47 |
{ |
168 all except ✔ |
48 |
return $this->lifetime; |
285 all except ✔ |
49 |
} |
303 all except ✔ |
50 |
} |
144 all except ✔ |