public function client($client = null)
    {
        if ($client === null) {
            return $this->getClient();
        }

        return $this->setClient($client);
    }
public function client($client = null)
    {
        if ($client === null) {
            return $this->getClient();
        }

        return $this->setClient($client);
    }
public function client ( $ client = null ) { if ( $ client === null ) { return $ this -> getClient ( ) ; } return $ this -> setClient ( $ client ) ; }
Set or return an instance of the client used for communication

@param object $client The client to use
@return object
@deprecated 2.0.0 Use setClient() and getClient() instead.
Set or return an instance of the client used for communication