src/Call/CallData.php
public function setResponseEvent(ResponseEvent $responseEvent): void
    {
        if ($this->responseEvent) {
            throw new InvalidArgumentException('Call already responded.');
        }

        $responseEvent->setCall($this);
        $this->responseEvent = $responseEvent;
    }
public function setResponseEvent(ResponseEvent $responseEvent): void
    {
        if ($this->responseEvent) {
            throw new InvalidArgumentException('Call already responded.');
        }

        $responseEvent->setCall($this);
        $this->responseEvent = $responseEvent;
    }
public function setResponseEvent ( ResponseEvent $ responseEvent ) : void { if ( $ this -> responseEvent ) { throw new InvalidArgumentException ( 'Call already responded.' ) ; } $ responseEvent -> setCall ( $ this ) ; $ this -> responseEvent = $ responseEvent ; }
Set the response event.

@param ResponseEvent $responseEvent The response event.

@throws InvalidArgumentException If the call has already responded.
Set the response event .