Passed
Pull Request — master (#980)
by butschster
08:08
created

RetryException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
eloc 3
dl 0
loc 12
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getOptions() 0 3 1
A __construct() 0 5 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Spiral\Queue\Exception;
6
7
use Spiral\Queue\OptionsInterface;
8
9
final class RetryException extends StateException
10
{
11 4
    public function __construct(
12
        string $reason = '',
13
        private ?OptionsInterface $options = null
14
    ) {
15 4
        parent::__construct($reason);
16
    }
17
18 4
    public function getOptions(): ?OptionsInterface
19
    {
20 4
        return $this->options;
21
    }
22
}
23