DI\Definition\Helper\ObjectDefinitionHelper::method PHP Method

method() public method

This method takes a variable number of arguments after the method name, example: ->method('myMethod', $param1, $param2) Can be used multiple times to declare multiple calls.
public method ( string $method ) : ObjectDefinitionHelper
$method string Name of the method to call.
return ObjectDefinitionHelper
    public function method($method)
    {
        $args = func_get_args();
        array_shift($args);
        if (!isset($this->methods[$method])) {
            $this->methods[$method] = [];
        }
        $this->methods[$method][] = $args;
        return $this;
    }