public function getTeam() { if (!$this->connected) { return Promise\reject(new ConnectionException('Client not connected. Did you forget to call `connect()`?')); } return Promise\resolve($this->team); }