/**
  * Constructor
  *
  * @param \Thruway\Peer\AbstractPeer $internalClient
  */
 public function __construct(AbstractPeer $internalClient)
 {
     $this->internalClient = $internalClient;
     $this->internalClient->addTransportProvider(new DummyTransportProvider());
     $this->manager = new ManagerDummy();
     $this->trusted = true;
 }
 function __construct(AbstractPeer $internalClient)
 {
     $this->internalClient = $internalClient;
     $this->internalClient->addTransportProvider(new DummyTransportProvider());
     $this->manager = new ManagerDummy();
     if ($this->internalClient instanceof Client) {
         $this->internalClient->setLogger($this->getManager()->getLogger());
     }
 }