protected function loadFromRows(array $rows, $typeIdentifier, $status) { $types = $this->mapper->extractTypesFromRows($rows); if (count($types) !== 1) { throw new Exception\TypeNotFound($typeIdentifier, $status); } return $types[0]; }