public function setAgiClient(IClient $client) { $this->client = $client; $this->logger = $this->client->getAsteriskLogger(); return $this; }