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

AsyncPersistPage   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 50%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 28
ccs 4
cts 8
cp 0.5
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getPage() 0 4 1
A getOptions() 0 4 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