Test Failed
Push — master ( 803dec...3fd2d6 )
by Hirofumi
05:43
created

SendFreshNotifications::specification()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 1
cts 1
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Shippinno\Notification\Application\Command;
5
6
use Tanigami\Specification\Specification;
7
8
class SendFreshNotifications
9
{
10
    /**
11
     * @var Specification
12
     */
13
    private $specification;
14
15
    /**
16 1
     * @param Specification $specification
17
     */
18 1
    public function __construct(Specification $specification)
19 1
    {
20
        $this->specification = $specification;
21
    }
22
23
    /**
24 1
     * @return Specification
25
     */
26 1
    public function specification(): Specification
27
    {
28
        return $this->specification;
29
    }
30
}
31