src/SlavePool.php
public function getByStatus($status)
    {
        return array_filter($this->slaves, function ($slave) use ($status) {
            return $status === Slave::ANY || $status === $slave->getStatus();
        });
    }
public function getByStatus($status)
    {
        return array_filter($this->slaves, function ($slave) use ($status) {
            return $status === Slave::ANY || $status === $slave->getStatus();
        });
    }
public function getByStatus ( $ status ) { return array_filter ( $ this -> slaves , function ( $ slave ) use ( $ status ) { return $ status === Slave :: ANY || $ status === $ slave -> getStatus ( ) ; } ) ; }
Get multiple slaves by status
Get multiple slaves by status