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;
}