public function toTypeHint(): string {
        if ($this->mixed) {
            throw new LogicException('Cannot make typehint for mixed type');
        }

        if ($this->nullable) {
            return '?'.$this->name;
        }

        return $this->name;
    }