public function __construct(ServiceReferenceInterface $caller, string $method, array $arguments = null) { $this->caller = clone $caller; $this->method = $method; $this->arguments = $arguments; $this->stringValue = $caller->getId() . $method; }