WC_Data_Store::__call PHP Méthode

__call() public méthode

Data stores can define additional functions (for example, coupons have some helper methods for increasing or decreasing usage). This passes through to the instance if that function exists.
Since: 2.7.0
public __call ( $method, $parameters )
$method
$parameters
    public function __call($method, $parameters)
    {
        if (is_callable(array($this->instance, $method))) {
            $object = array_shift($parameters);
            return call_user_func_array(array($this->instance, $method), array_merge(array(&$object), $parameters));
        }
    }