piwik/vendor/mnapoli/php-di/src/DI/Definition/Helper/ClassDefinitionHelper.php
/**
     * Defines a method to call and a value for a specific argument.
     *
     * This method is usually used together with annotations or autowiring, when a parameter
     * is not (or cannot be) type-hinted. Using this method instead of method() allows to
     * avoid defining all the parameters (letting them being resolved using annotations or autowiring)
     * and only define one.
     *
     * @param string $method    Name of the method to call.
     * @param string $parameter Parameter for which the value will be given.
     * @param mixed  $value     Value to give to this parameter.
     *
     * @return ClassDefinitionHelper
     */
Defines a method to call and a value for a specific argument.
This method is usually used together with annotations or autowiring, when a parameter
is not (or cannot be) type-hinted. Using this method instead of method() allows to
avoid defining all the parameters (letting them being resolved using annotations or autowiring)
and only define one.

@param string $method    Name of the method to call.
@param string $parameter Parameter for which the value will be given.
@param mixed  $value     Value to give to this parameter.


Defines a method to call and a value for a specific argument . This method is usually used together with annotations or autowiring when a parameter is not ( or cannot be ) type - hinted . Using this method instead of method () allows to avoid defining all the parameters ( letting them being resolved using annotations or autowiring ) and only define one . @param string $method Name of the method to call . @param string $parameter Parameter for which the value will be given . @param mixed $value Value to give to this parameter .
public function methodParameter($method, $parameter, $value)
    {
        if ($method === '__construct') {
            $this->constructor[$parameter] = $value;
            return $this;
        }
        if (! isset($this->methods[$method])) {
            $this->methods[$method] = array();
        }
        $this->methods[$method][$parameter] = $value;
        return $this;
    }
public function methodParameter ( $ method , $ parameter , $ value ) { if ( $ method === '__construct' ) { $ this -> constructor [ $ parameter ] = $ value ; return $ this ; } if ( ! isset ( $ this -> methods [ $ method ] ) ) { $ this -> methods [ $ method ] = array ( ) ; } $ this -> methods [ $ method ] [ $ parameter ] = $ value ; return $ this ; }
Defines a method to call and a value for a specific argument.
Defines a method to call and a value for a specific argument .
// Special case for the constructor