@@ -374,7 +374,7 @@ public function generate($groupId)
374
374
* @param string $groupId
375
375
* @return $this
376
376
*/
377
- public function generateJobs ($ jobs , $ exists , $ groupId )
377
+ private function generateJobs ($ jobs , $ exists , $ groupId )
378
378
{
379
379
foreach ($ jobs as $ jobCode => $ jobConfig ) {
380
380
$ cronExpression = $ this ->getCronExpression ($ jobConfig );
@@ -394,7 +394,7 @@ public function generateJobs($jobs, $exists, $groupId)
394
394
* @param string $groupId
395
395
* @return $this
396
396
*/
397
- public function cleanup ($ groupId )
397
+ private function cleanup ($ groupId )
398
398
{
399
399
$ this ->cleanupDisabledJobs ($ groupId );
400
400
@@ -462,7 +462,7 @@ public function cleanup($groupId)
462
462
* @param array $jobConfig
463
463
* @return mixed
464
464
*/
465
- public function getConfigSchedule ($ jobConfig )
465
+ private function getConfigSchedule ($ jobConfig )
466
466
{
467
467
$ cronExpr = $ this ->scopeConfig ->getValue (
468
468
$ jobConfig ['config_path ' ],
@@ -479,7 +479,7 @@ public function getConfigSchedule($jobConfig)
479
479
* @param array $exists
480
480
* @return void
481
481
*/
482
- public function saveSchedule ($ jobCode , $ cronExpression , $ timeInterval , $ exists )
482
+ private function saveSchedule ($ jobCode , $ cronExpression , $ timeInterval , $ exists )
483
483
{
484
484
$ currentTime = $ this ->timezone ->scopeTimeStamp ();
485
485
$ timeAhead = $ currentTime + $ timeInterval ;
@@ -510,7 +510,7 @@ public function saveSchedule($jobCode, $cronExpression, $timeInterval, $exists)
510
510
* @param int $time
511
511
* @return Schedule
512
512
*/
513
- public function generateSchedule ($ jobCode , $ cronExpression , $ time )
513
+ private function generateSchedule ($ jobCode , $ cronExpression , $ time )
514
514
{
515
515
$ schedule = $ this ->scheduleFactory ->create ()
516
516
->setCronExpr ($ cronExpression )
@@ -526,7 +526,7 @@ public function generateSchedule($jobCode, $cronExpression, $time)
526
526
* @param string $groupId
527
527
* @return int
528
528
*/
529
- public function getScheduleTimeInterval ($ groupId )
529
+ private function getScheduleTimeInterval ($ groupId )
530
530
{
531
531
$ scheduleAheadFor = (int )$ this ->scopeConfig ->getValue (
532
532
'system/cron/ ' . $ groupId . '/ ' . self ::XML_PATH_SCHEDULE_AHEAD_FOR ,
@@ -562,7 +562,7 @@ public function cleanupDisabledJobs($groupId)
562
562
* @param $jobConfig
563
563
* @return null|string
564
564
*/
565
- public function getCronExpression ($ jobConfig )
565
+ private function getCronExpression ($ jobConfig )
566
566
{
567
567
$ cronExpression = null ;
568
568
if (isset ($ jobConfig ['config_path ' ])) {
@@ -600,7 +600,7 @@ public function cleanupScheduleMismatches()
600
600
/**
601
601
* @return array
602
602
*/
603
- public function getJobs ()
603
+ private function getJobs ()
604
604
{
605
605
if (is_null ($ this ->jobs )) {
606
606
$ this ->jobs = $ this ->config ->getJobs ();
0 commit comments