public function getMessage($msg, ClientInterface $client) { if ($msg = 'Can you get my clothes laundered, please') { $this->laundry = $client->getClothes(); $this->clientAddress = $client->getAddress(); $this->getTaxi(); } return $this->laundry; }