Test Failed
Branch feature/v1_stable_fixes (e805e7)
by Diego
04:22
created

AbstractSearchableRepository::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
cc 1
eloc 2
c 1
b 1
f 0
nc 1
nop 2
dl 0
loc 8
rs 10
1
<?php
2
3
namespace Blackmine\Repository;
4
5
use Blackmine\Client\Client;
6
use Blackmine\Client\ClientOptions;
7
use JsonException;
8
9
abstract class AbstractSearchableRepository extends AbstractRepository implements SearchableRepositoryInterface
10
{
11
    use SearchableTrait;
12
13
    /**
14
     * @param Client $client
15
     * @param array|array[] $options
16
     */
17
    public function __construct(
18
        protected Client $client,
19
        protected array $options = [
20
            ClientOptions::CLIENT_OPTION_REQUEST_HEADERS => []
21
        ]
22
    ) {
23
        parent::__construct($this->client, $this->options);
24
        $this->reset();
25
    }
26
27
}
28