Issues (2551)

src/Impl/ExecuteDurationCmd.php (1 issue)

Labels
Severity
1
<?php
2
3
namespace Jabe\Impl;
4
5
use Jabe\History\HistoricTaskInstanceReportInterface;
6
use Jabe\Impl\Interceptor\{
7
    CommandInterface,
8
    CommandContext
9
};
10
11
class ExecuteDurationCmd implements CommandInterface
12
{
13
    private $scope;
14
15
    public function __construct(HistoricTaskInstanceReportInterface $scope)
16
    {
17
        $this->scope = $scope;
18
    }
19
20
    public function execute(CommandContext $commandContext)
21
    {
22
        return $this->scope->executeDuration($commandContext);
0 ignored issues
show
The method executeDuration() does not exist on Jabe\History\HistoricTaskInstanceReportInterface. Since it exists in all sub-types, consider adding an abstract or default implementation to Jabe\History\HistoricTaskInstanceReportInterface. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

22
        return $this->scope->/** @scrutinizer ignore-call */ executeDuration($commandContext);
Loading history...
23
    }
24
}
25