Completed
Push — master ( 6ed010...811bc4 )
by Karel
06:34 queued 10s
created

AsyncPersistPage::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
crap 1
1
<?php
2
declare(strict_types=1);
3
4
namespace FOS\ElasticaBundle\Message;
5
6
class AsyncPersistPage
7
{
8
    /**
9
     * @var int
10
     */
11
    private $page;
12
13
    /**
14
     * @var array
15
     */
16
    private $options;
17
18 1
    public function __construct(int $page, array $options)
19
    {
20 1
        $this->page = $page;
21 1
        $this->options = $options;
22 1
    }
23
24
    public function getPage(): int
25
    {
26
        return $this->page;
27
    }
28
29
    public function getOptions(): array
30
    {
31
        return $this->options;
32
    }
33
}
34