Prado\TComponentReflection::determinePropertyType PHP 메소드

determinePropertyType() 보호된 메소드

This method uses the doc comment to determine the property type.
protected determinePropertyType ( $method ) : string
리턴 string the property type, '{unknown}' if type cannot be determined from comment
    protected function determinePropertyType($method)
    {
        $comment = $method->getDocComment();
        if (preg_match('/@return\\s+(.*?)\\s+/', $comment, $matches)) {
            return $matches[1];
        } else {
            return '{unknown}';
        }
    }