Automattic\WooCommerce\Vendor\League\Container\Definition
Definition::invokeMethods() protected WC 1.0
Invoke methods on resolved instance.
{} It's a method of the class: Definition{}
No Hooks.
Return
Object.
Usage
// protected - for code of main (parent) or child class $result = $this->invokeMethods( $instance );
- $instance(object) (required)
- -
Code of Definition::invokeMethods() Definition::invokeMethods WC 5.0.0
protected function invokeMethods($instance)
{
foreach ($this->methods as $method) {
$args = $this->resolveArguments($method['arguments']);
/** @var callable $callable */
$callable = [$instance, $method['method']];
call_user_func_array($callable, $args);
}
return $instance;
}