public function setClient($client)
    {
        if ($client instanceof Client && $this->client != $client) {
            $this->configureDefaults($client->getMessageDefaults(), true);
        }

        $this->client = $client;

        return $this;
    }
public function setClient($client)
    {
        if ($client instanceof Client && $this->client != $client) {
            $this->configureDefaults($client->getMessageDefaults(), true);
        }

        $this->client = $client;

        return $this;
    }
public function setClient ( $ client ) { if ( $ client instanceof Client && $ this -> client != $ client ) { $ this -> configureDefaults ( $ client -> getMessageDefaults ( ) , true ) ; } $ this -> client = $ client ; return $ this ; }
Set the BearyChat Client instance.

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