Nelmio\Alice\Definition\MethodCall\OptionalMethodCall::__construct PHP Метод

__construct() публичный Метод

public __construct ( Nelmio\Alice\Definition\MethodCallInterface $methodCall, OptionalFlag $flag )
$methodCall Nelmio\Alice\Definition\MethodCallInterface
$flag Nelmio\Alice\Definition\Flag\OptionalFlag
    public function __construct(MethodCallInterface $methodCall, OptionalFlag $flag)
    {
        $this->methodCall = null !== ($caller = $methodCall->getCaller()) ? new MethodCallWithReference($caller, $methodCall->getMethod(), $methodCall->getArguments()) : new SimpleMethodCall($methodCall->getMethod(), $methodCall->getArguments());
        $this->flag = $flag;
    }