PayPal\Common\ReflectionUtil::getter PHP Method

getter() public static method

Returns the properly formatted getter function name based on class name and property Formats the property name to a standard getter function
public static getter ( string $class, string $propertyName ) : string
$class string
$propertyName string
return string getter function name
    public static function getter($class, $propertyName)
    {
        return method_exists($class, "get" . ucfirst($propertyName)) ? "get" . ucfirst($propertyName) : "get" . preg_replace_callback("/([_\\-\\s]?([a-z0-9]+))/", "self::replace_callback", $propertyName);
    }