23 use Wikimedia\Assert\Assert;
40 $this->jobsByDomain[$domain] = $jobs;
45 Assert::parameterType( __CLASS__, $update,
'$update' );
46 '@phan-var self $update';
48 foreach ( $update->jobsByDomain as $domain => $jobs ) {
49 $this->jobsByDomain[$domain] = $this->jobsByDomain[$domain] ?? [];
50 $this->jobsByDomain[$domain] = array_merge( $this->jobsByDomain[$domain], $jobs );
55 foreach ( $this->jobsByDomain as $domain => $jobs ) {
58 $group->push( $jobs );
59 }
catch ( Exception $e ) {