These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | namespace SMW\Query\ProfileAnnotator; |
||
4 | |||
5 | /** |
||
6 | * Decorator implementing the ProfileAnnotator interface |
||
7 | * |
||
8 | * @license GNU GPL v2+ |
||
9 | * @since 1.9 |
||
10 | * |
||
11 | * @author mwjames |
||
12 | */ |
||
13 | abstract class ProfileAnnotatorDecorator implements ProfileAnnotator { |
||
14 | |||
15 | /** |
||
16 | */ |
||
17 | protected $profileAnnotator; |
||
18 | |||
19 | /** |
||
20 | * @since 1.9 |
||
21 | * |
||
22 | * @param ProfileAnnotator $profileAnnotator |
||
23 | */ |
||
24 | 78 | public function __construct( ProfileAnnotator $profileAnnotator ) { |
|
25 | 78 | $this->profileAnnotator = $profileAnnotator; |
|
26 | 78 | } |
|
27 | |||
28 | /** |
||
29 | * ProfileAnnotator::getProperty |
||
30 | * |
||
31 | * @since 1.9 |
||
32 | * |
||
33 | * @return DIProperty |
||
34 | */ |
||
35 | 78 | public function getProperty() { |
|
36 | 78 | return $this->profileAnnotator->getProperty(); |
|
37 | } |
||
38 | |||
39 | /** |
||
40 | * ProfileAnnotator::getContainer |
||
41 | * |
||
42 | * @since 1.9 |
||
43 | * |
||
44 | * @return DIContainer |
||
45 | */ |
||
46 | 78 | public function getContainer() { |
|
47 | 78 | return $this->profileAnnotator->getContainer(); |
|
48 | } |
||
49 | |||
50 | /** |
||
51 | * @see ProfileAnnotator::getSemanticData |
||
52 | * |
||
53 | * @since 1.9 |
||
54 | * |
||
55 | * @return SemanticData |
||
56 | */ |
||
57 | 78 | public function getSemanticData() { |
|
58 | 78 | return $this->profileAnnotator->getSemanticData(); |
|
59 | } |
||
60 | |||
61 | /** |
||
62 | * ProfileAnnotator::addAnnotation |
||
63 | * |
||
64 | * @since 1.9 |
||
65 | * |
||
66 | * @return ProfileAnnotator |
||
67 | */ |
||
68 | 78 | public function addAnnotation() { |
|
69 | 78 | $this->profileAnnotator->addAnnotation(); |
|
70 | 78 | $this->addPropertyValues(); |
|
71 | 78 | } |
|
72 | |||
73 | /** |
||
74 | * @since 1.9 |
||
75 | */ |
||
76 | protected abstract function addPropertyValues(); |
||
0 ignored issues
–
show
Coding Style
introduced
by
Loading history...
|
|||
77 | |||
78 | } |
||
79 |