ProcessNextSchedule   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 18
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A execute() 0 3 1
1
<?php
2
3
namespace Tkotosz\CommandScheduler\Cron;
4
5
use Tkotosz\CommandScheduler\Model\CommandScheduleProcessor;
6
7
class ProcessNextSchedule
8
{
9
    /**
10
     * @var CommandScheduleProcessor
11
     */
12
    private $commandScheduleProcessor;
13
    
14
    /**
15
     * @param CommandScheduleProcessor $commandScheduleProcessor
16
     */
17
    public function __construct(CommandScheduleProcessor $commandScheduleProcessor)
18
    {
19
        $this->commandScheduleProcessor = $commandScheduleProcessor;
20
    }
21
22
    public function execute()
23
    {
24
        $this->commandScheduleProcessor->processNext();
25
    }
26
}
27