src/Factory/FieldFactory.php
private function getFieldClass(string $type): string
    {
        if (!array_key_exists($type, $this->fieldsMapping)) {
            throw new Exception("Field type \"{$type}\" not found in field mapping. Allowed fields are \"".implode('", "', $this->fieldsMapping).'"');
        }

        return $this->fieldsMapping[$type];
    }
private function getFieldClass(string $type): string
    {
        if (!array_key_exists($type, $this->fieldsMapping)) {
            throw new Exception("Field type \"{$type}\" not found in field mapping. Allowed fields are \"".implode('", "', $this->fieldsMapping).'"');
        }

        return $this->fieldsMapping[$type];
    }
private function getFieldClass ( string $ type ) : string { if ( ! array_key_exists ( $ type , $ this -> fieldsMapping ) ) { throw new Exception ( "Field type \"{$type}\" not found in field mapping. Allowed fields are \"" . implode ( '", "' , $ this -> fieldsMapping ) . '"' ) ; } return $ this -> fieldsMapping [ $ type ] ; }
Return field class according to the field type. If the type is not present in the field mapping array, an
exception will be thrown.

@param string $type

@return string

@throws Exception
Return field class according to the field type . If the type is not present in the field mapping array an exception will be thrown .