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

AbstractSearchableRepository   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
eloc 4
c 1
b 1
f 0
dl 0
loc 16
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
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