Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Tests | 10 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
57 | 1 | public function addAnnotation( DIProperty $property, SemanticData $semanticData ) { |
|
58 | |||
59 | 1 | $title = $semanticData->getSubject()->getTitle(); |
|
60 | |||
61 | //-1 = no limit. Returns TitleArray object |
||
62 | 1 | $subpages = $title->getSubpages( -1 ); |
|
63 | |||
64 | 1 | foreach ( $subpages as $title ) { |
|
65 | 1 | $semanticData->addPropertyObjectValue( |
|
66 | 1 | $property, |
|
67 | 1 | DIWikiPage::newFromTitle( $title ) |
|
68 | 1 | ); |
|
69 | 1 | } |
|
70 | 1 | } |
|
71 | |||
73 |