Exemplo n.º 1
0
 /**
  * Test if has connection
  * 
  * Remember that the sockets are lazy-initialised so we can create
  * connection instances to test with without incurring a socket connection.
  * 
  * @param ConnectionInterface $connection
  * 
  * @return boolean
  */
 public function hasConnection(ConnectionInterface $connection)
 {
     return $this->find($connection->getSocket()) ? TRUE : FALSE;
 }