src/Model/StructAttribute.php
public function getType($useTypeStruct = false)
    {
        if ($useTypeStruct) {
            $typeStruct = $this->getTypeStruct();
            if ($typeStruct instanceof Struct) {
                $type = $typeStruct->getTopInheritance();
                return $type ? $type : $this->type;
            }
        }
        return $this->type;
    }
public function getType($useTypeStruct = false)
    {
        if ($useTypeStruct) {
            $typeStruct = $this->getTypeStruct();
            if ($typeStruct instanceof Struct) {
                $type = $typeStruct->getTopInheritance();
                return $type ? $type : $this->type;
            }
        }
        return $this->type;
    }
public function getType ( $ useTypeStruct = false ) { if ( $ useTypeStruct ) { $ typeStruct = $ this -> getTypeStruct ( ) ; if ( $ typeStruct instanceof Struct ) { $ type = $ typeStruct -> getTopInheritance ( ) ; return $ type ? $ type : $ this -> type ; } } return $ this -> type ; }
Returns the type value
@return string
Returns the type value