Programming Language PHP

Namespace Oro\Component\MessageQueue\Job

Class Job

Method/Function getChildJobs

Total Examples 1

1 code examples of PHP Oro\Component\MessageQueue\Job\Job::getChildJobs extracted from open source projects

Was this example useful?
0
                                                    private function hasNotStartedChild(Job $job): bool
    {
        foreach ($job->getChildJobs() as $childJob) {
            if (Job::STATUS_NEW === $childJob->getStatus()) {
                return true;
            }
        }

        return false;
    }