PayPal\Common\PPReflectionUtil::getPropertyClass PHP Method

getPropertyClass() public static method

public static getPropertyClass ( string $class, string $propertyName )
$class string
$propertyName string
    public static function getPropertyClass($class, $propertyName)
    {
        if (($annotations = self::propertyAnnotations($class, $propertyName)) && isset($annotations['return'])) {
            // 			if (substr($annotations['param'], -2) === '[]') {
            // 				$param = substr($annotations['param'], 0, -2);
            // 			}
            $param = $annotations['return'];
        }
        if (isset($param)) {
            $anno = explode(' ', $param);
            return $anno[0];
        } else {
            return 'string';
        }
    }