src/DataObject.php
private function getRawType(\ReflectionProperty $property)
    {
        $matches = [];
        if (preg_match('/@var\s+([^\s]+)/', $property->getDocComment(), $matches)) {
            list(, $rawType) = $matches;
        } else {
            $rawType = 'mixed';
        }
        return $rawType;
    }
private function getRawType(\ReflectionProperty $property)
    {
        $matches = [];
        if (preg_match('/@var\s+([^\s]+)/', $property->getDocComment(), $matches)) {
            list(, $rawType) = $matches;
        } else {
            $rawType = 'mixed';
        }
        return $rawType;
    }
private function getRawType ( \ ReflectionProperty $ property ) { $ matches = [ ] ; if ( preg_match ( '/@var\s+([^\s]+)/' , $ property -> getDocComment ( ) , $ matches ) ) { list ( , $ rawType ) = $ matches ; } else { $ rawType = 'mixed' ; } return $ rawType ; }
Returns raw string type format from the var annotation
@param \ReflectionProperty $property
@return string
Returns raw string type format from the var annotation