public function get(string $status): array
    {
        Assertion::choice($status, ProcessWrapper::PROCESS_STATUSES);

        $return = [];
        foreach ($this->processes as $className => $processWrapper) {
            if ($processWrapper->getStatus() === $status) {
                $return[$className] = $processWrapper;
            }
        }

        return $return;
    }
public function get(string $status): array
    {
        Assertion::choice($status, ProcessWrapper::PROCESS_STATUSES);

        $return = [];
        foreach ($this->processes as $className => $processWrapper) {
            if ($processWrapper->getStatus() === $status) {
                $return[$className] = $processWrapper;
            }
        }

        return $return;
    }
public function get ( string $ status ) : array { Assertion :: choice ( $ status , ProcessWrapper :: PROCESS_STATUSES ) ; $ return = [ ] ; foreach ( $ this -> processes as $ className => $ processWrapper ) { if ( $ processWrapper -> getStatus ( ) === $ status ) { $ return [ $ className ] = $ processWrapper ; } } return $ return ; }
Get array of processes in the set having given status

@return ProcessWrapper[]
Get array of processes in the set having given status