private function getPropertyTableForType($type) { $propertyTables = $this->store->getPropertyTables(); $tableIdForType = $this->store->findTypeTableId($type); if (isset($propertyTables[$tableIdForType])) { return $propertyTables[$tableIdForType]; } throw new RuntimeException("Tried to access a table that doesn't exist for {$type}."); }