Passed
Push — main ( 6fd589...d01f4c )
by Bingo
05:51
created

setSkipSubprocesses()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
namespace Jabe\Engine\Impl\Batch\Deletion;
4
5
use Jabe\Engine\Impl\Batch\{
6
    BatchConfiguration,
0 ignored issues
show
Bug introduced by
The type Jabe\Engine\Impl\Batch\BatchConfiguration was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
7
    DeploymentMappings
0 ignored issues
show
Bug introduced by
The type Jabe\Engine\Impl\Batch\DeploymentMappings was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
8
};
9
10
class DeleteProcessInstanceBatchConfiguration extends BatchConfiguration
11
{
12
    protected $deleteReason;
13
    protected $skipCustomListeners;
14
    protected $skipSubprocesses;
15
16
    public function __construct(array $ids, DeploymentMappings $mappings = null, string $deleteReason = null, bool $skipCustomListeners = true, bool $skipSubprocesses = true, bool $failIfNotExists = false)
17
    {
18
        parent::__construct($ids, $mappings);
19
        $this->deleteReason = $deleteReason;
20
        $this->skipCustomListeners = $skipCustomListeners;
21
        $this->skipSubprocesses = $skipSubprocesses;
22
        $this->failIfNotExists = $failIfNotExists;
0 ignored issues
show
Bug Best Practice introduced by
The property failIfNotExists does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
23
    }
24
25
    public function getDeleteReason(): ?string
26
    {
27
        return $this->deleteReason;
28
    }
29
30
    public function setDeleteReason(string $deleteReason): void
31
    {
32
        $this->deleteReason = $deleteReason;
33
    }
34
35
    public function isSkipCustomListeners(): bool
36
    {
37
        return $this->skipCustomListeners;
38
    }
39
40
    public function isSkipSubprocesses(): bool
41
    {
42
        return $this->skipSubprocesses;
43
    }
44
45
    public function setSkipSubprocesses(bool $skipSubprocesses): void
46
    {
47
        $this->skipSubprocesses = $skipSubprocesses;
48
    }
49
}
50