| Total Complexity | 3 |
| Total Lines | 66 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 11 | class MockAdapter implements AdapterInterface |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var MockApiResourceDataLayer |
||
| 15 | */ |
||
| 16 | private $dataLayer; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var (int|string)[] |
||
| 20 | */ |
||
| 21 | private $idList; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var array |
||
| 25 | */ |
||
| 26 | private $searches; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var string |
||
| 30 | */ |
||
| 31 | private $resourceClass; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @var array |
||
| 35 | */ |
||
| 36 | private $context; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @var ObjectAccessInterface |
||
| 40 | */ |
||
| 41 | private $propertyAccessor; |
||
| 42 | |||
| 43 | public function __construct( |
||
| 44 | MockApiResourceDataLayer $dataLayer, |
||
| 45 | array $idList, |
||
| 46 | array $searches, |
||
| 47 | string $resourceClass, |
||
| 48 | array $context, |
||
| 49 | ObjectAccessInterface $propertyAccessor |
||
| 50 | ) { |
||
| 51 | $this->dataLayer = $dataLayer; |
||
| 52 | $this->idList = $idList; |
||
| 53 | $this->searches = $searches; |
||
| 54 | $this->resourceClass = $resourceClass; |
||
| 55 | $this->context = $context; |
||
| 56 | $this->propertyAccessor = $propertyAccessor; |
||
| 57 | } |
||
| 58 | |||
| 59 | public function getNbResults() |
||
| 62 | } |
||
| 63 | |||
| 64 | public function getSlice($offset, $length) |
||
| 77 | ); |
||
| 78 | } |
||
| 80 |