public function setAdapter(AdapterInterface $adapter)
    {
        $this->adapter = $adapter;
        $this->connection = new Connection($this->adapter);
    }
public function setAdapter(AdapterInterface $adapter)
    {
        $this->adapter = $adapter;
        $this->connection = new Connection($this->adapter);
    }
public function setAdapter ( AdapterInterface $ adapter ) { $ this -> adapter = $ adapter ; $ this -> connection = new Connection ( $ this -> adapter ) ; }
Sets the adapter to use.

@param AdapterInterface $adapter
Sets the adapter to use .