| Total Complexity | 3 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | class InProcessCachingDataTypeLookup implements PropertyDataTypeLookup { |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var string[] Indexed by serialized PropertyId |
||
| 19 | */ |
||
| 20 | private $propertyIds = []; |
||
| 21 | |||
| 22 | private PropertyDataTypeLookup $lookup; |
||
| 23 | |||
| 24 | 2 | public function __construct( PropertyDataTypeLookup $propertyDataTypeLookup ) { |
|
| 26 | 2 | } |
|
| 27 | |||
| 28 | /** |
||
| 29 | * @param PropertyId $propertyId |
||
| 30 | * |
||
| 31 | * @return string |
||
| 32 | * @throws PropertyDataTypeLookupException |
||
| 33 | */ |
||
| 34 | 2 | public function getDataTypeIdForProperty( PropertyId $propertyId ) { |
|
| 45 |