gossi\codegen\generator\builder\parts\TypeBuilderPart::getType PHP Method

getType() private method

private getType ( AbstractModel $model, boolean $allowed ) : string | null
$model gossi\codegen\model\AbstractModel
$allowed boolean
return string | null
    private function getType(AbstractModel $model, $allowed)
    {
        $type = $model->getType();
        if (!empty($type) && strpos($type, '|') === false && (!in_array($type, self::$noTypeHints) || $allowed && in_array($type, self::$php7typeHints))) {
            if (isset(self::$typeHintMap[$type])) {
                return self::$typeHintMap[$type];
            }
            return $type;
        }
        return null;
    }
TypeBuilderPart