src/Vacancy/VacancyManager.php
public function updateBatch(Business $business, $parsedStatements)
    {
        $changed = false;
        $dates = $this->arrayGroupBy('date', $parsedStatements);

        foreach ($dates as $date => $statements) {
            $services = $this->arrayGroupBy('service', $statements);

            $changed |= $this->processServiceStatements($business, $date, $services);
        }

        return $changed;
    }
public function updateBatch(Business $business, $parsedStatements)
    {
        $changed = false;
        $dates = $this->arrayGroupBy('date', $parsedStatements);

        foreach ($dates as $date => $statements) {
            $services = $this->arrayGroupBy('service', $statements);

            $changed |= $this->processServiceStatements($business, $date, $services);
        }

        return $changed;
    }
public function updateBatch ( Business $ business , $ parsedStatements ) { $ changed = false ; $ dates = $ this -> arrayGroupBy ( 'date' , $ parsedStatements ) ; foreach ( $ dates as $ date => $ statements ) { $ services = $ this -> arrayGroupBy ( 'service' , $ statements ) ; $ changed |= $ this -> processServiceStatements ( $ business , $ date , $ services ) ; } return $ changed ; }
Update vacancies from batch statements.

@param Business $business
@param array    $parsedStatements

@return bool
Update vacancies from batch statements .