| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | 2 | public function toContainerSemanticData( TitleValue $subjectPage ): ContainerSemanticData { |
|
| 26 | 2 | $container = $this->newContainerSemanticData( $subjectPage ); |
|
| 27 | |||
| 28 | 2 | foreach ( $this->values as $propertyName => $dataItems ) { |
|
| 29 | 1 | foreach ( $dataItems as $dataItem ) { |
|
| 30 | 1 | $container->addPropertyObjectValue( |
|
| 31 | 1 | new DIProperty( $propertyName ), |
|
| 32 | $dataItem |
||
| 33 | ); |
||
| 34 | } |
||
| 35 | } |
||
| 36 | |||
| 37 | 2 | return $container; |
|
| 38 | } |
||
| 39 | |||
| 60 |