| Total Complexity | 4 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | class PropertyDataTypeMatcher { |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var PropertyDataTypeLookup |
||
| 21 | */ |
||
| 22 | private $propertyDataTypeLookup; |
||
| 23 | |||
| 24 | public function __construct( PropertyDataTypeLookup $propertyDataTypeLookup ) { |
||
| 25 | $this->propertyDataTypeLookup = $propertyDataTypeLookup; |
||
| 26 | } |
||
| 27 | 3 | ||
| 28 | 3 | /** |
|
| 29 | 3 | * Returns if the property with the specified property id has the provided data type. |
|
| 30 | * |
||
| 31 | * @param PropertyId $propertyId |
||
| 32 | * @param string $dataType |
||
| 33 | * |
||
| 34 | * @return bool |
||
| 35 | */ |
||
| 36 | public function isMatchingDataType( PropertyId $propertyId, $dataType ) { |
||
| 41 | 3 | } |
|
| 42 | 1 | } |
|
| 43 | 1 | ||
| 44 | /** |
||
| 45 | * @param PropertyId $propertyId |
||
| 46 | * |
||
| 47 | * @return string |
||
| 48 | * @throws PropertyDataTypeLookupException |
||
| 49 | */ |
||
| 50 | private function findDataTypeIdForProperty( PropertyId $propertyId ) { |
||
| 55 |