src/Slave.php
public function occupy()
    {
        if ($this->status !== self::READY) {
            throw new \LogicException('Cannot occupy a slave that is not in ready state');
        }

        $this->status = self::BUSY;
    }
public function occupy()
    {
        if ($this->status !== self::READY) {
            throw new \LogicException('Cannot occupy a slave that is not in ready state');
        }

        $this->status = self::BUSY;
    }
public function occupy ( ) { if ( $ this -> status !== self :: READY ) { throw new \ LogicException ( 'Cannot occupy a slave that is not in ready state' ) ; } $ this -> status = self :: BUSY ; }
Occupies a slave for request handling

@return void
Occupies a slave for request handling