public function getFieldType($identifier) { if ($this->hasFieldType($identifier)) { return $this->fieldTypes[$identifier]; } throw new Exceptions\NotFoundException(sprintf('FieldType with identifier "%s" not found.', $identifier)); }