public function setClient($pClient)
    {
        if (is_string($pClient)) {
            $pClient = new $pClient($this);
        }

        $this->client = $pClient;
        $this->client->setupFormats();

        return $this;
    }
public function setClient($pClient)
    {
        if (is_string($pClient)) {
            $pClient = new $pClient($this);
        }

        $this->client = $pClient;
        $this->client->setupFormats();

        return $this;
    }
public function setClient ( $ pClient ) { if ( is_string ( $ pClient ) ) { $ pClient = new $ pClient ( $ this ) ; } $ this -> client = $ pClient ; $ this -> client -> setupFormats ( ) ; return $ this ; }
Sets the client.

@param  Client|string $pClient
@return Server        $this
Sets the client .