Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 1 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
52 | public function statementMatches( Statement $statement ) { |
||
53 | 9 | $id = $statement->getPropertyId(); |
|
54 | |||
55 | try { |
||
56 | $dataType = $this->dataTypeLookup->getDataTypeIdForProperty( $id ); |
||
57 | } catch ( PropertyDataTypeLookupException $ex ) { |
||
58 | return false; |
||
59 | } |
||
60 | |||
61 | return in_array( $dataType, $this->dataTypes ); |
||
62 | } |
||
63 | |||
65 |