src/SlavePool.php
public function getByPort($port)
    {
        if (!isset($this->slaves[$port])) {
            throw new \Exception("Slave port $port empty.");
        }

        return $this->slaves[$port];
    }
public function getByPort($port)
    {
        if (!isset($this->slaves[$port])) {
            throw new \Exception("Slave port $port empty.");
        }

        return $this->slaves[$port];
    }
public function getByPort ( $ port ) { if ( ! isset ( $ this -> slaves [ $ port ] ) ) { throw new \ Exception ( "Slave port $port empty." ) ; } return $ this -> slaves [ $ port ] ; }
Get slave by port

@param int $port
@return Slave
Get slave by port