DfpUser::__call PHP Method

__call() public method

Handles calls to undefined methods.
public __call ( string $name, array $arguments ) : mixed
$name string the name of the method being called
$arguments array the arguments passed to the method
return mixed the result of the correct method call, or nothing if there is no correct method
    public function __call($name, $arguments)
    {
        // Handle calls to legacy Get*Service() methods.
        if (preg_match('/^Get(\\w+Service)$/i', $name, $matches)) {
            $serviceName = $matches[1];
            array_unshift($arguments, $serviceName);
            return call_user_func_array(array($this, 'GetService'), $arguments);
        }
    }