public function client($client)
    {
        $this->client = $client instanceof Client ? $client : bearychat($client);

        if ($this->message) {
            $this->message->setClient($this->client);
        }

        return $this;
    }
public function client($client)
    {
        $this->client = $client instanceof Client ? $client : bearychat($client);

        if ($this->message) {
            $this->message->setClient($this->client);
        }

        return $this;
    }
public function client ( $ client ) { $ this -> client = $ client instanceof Client ? $ client : bearychat ( $ client ) ; if ( $ this -> message ) { $ this -> message -> setClient ( $ this -> client ) ; } return $ this ; }
Set the BearyChat client.

@param  \ElfSundae\BearyChat\Client|string  $client
@return $this
Set the BearyChat client .