| 1 |
<?php |
| 2 |
|
| 3 |
if (!defined('ABSPATH')) { |
| 4 |
exit; |
| 5 |
} |
| 6 |
|
| 7 |
/** |
| 8 |
* Optional dependency bundle for |
| 9 |
* {@see ABJ_404_Solution_NotFoundResponseService::__construct()}. |
| 10 |
* |
| 11 |
* Replaces a 6-positional-parameter constructor (criterion 220 Interface |
| 12 |
* Size). Every field is nullable; the consumer keeps its per-field |
| 13 |
* `?? abj_service(...)` resolution. Fields are untyped to preserve the |
| 14 |
* constructor's existing null-tolerant interface parameters. |
| 15 |
*/ |
| 16 |
// allow-no-test-found: pure dependency-bundle DTO (nullable public fields, constructor-only assignment, no behavior); fields consumed by ABJ_404_Solution_NotFoundResponseService, constructed and exercised in NotFoundResponseServiceTest. |
| 17 |
class ABJ_404_Solution_NotFoundResponseDependencies { |
| 18 |
|
| 19 |
/** @var ABJ_404_Solution_Functions|null */ |
| 20 |
public $functions; |
| 21 |
|
| 22 |
/** @var ABJ_404_Solution_RedirectsRepositoryInterface|null */ |
| 23 |
public $redirectsRepo; |
| 24 |
|
| 25 |
/** @var ABJ_404_Solution_LogsRepositoryInterface|null */ |
| 26 |
public $logsRepo; |
| 27 |
|
| 28 |
/** @var ABJ_404_Solution_Logging|null */ |
| 29 |
public $logging; |
| 30 |
|
| 31 |
/** @var ABJ_404_Solution_PluginLogicOptionsResolver|null */ |
| 32 |
public $optionsRepository; |
| 33 |
|
| 34 |
/** @var ABJ_404_Solution_PreviousRequestCookieTracker|null */ |
| 35 |
public $previousRequestCookieTracker; |
| 36 |
|
| 37 |
/** @var ABJ_404_Solution_NearMissRecorder|null */ |
| 38 |
public $nearMissRecorder; |
| 39 |
|
| 40 |
/** |
| 41 |
* @param ABJ_404_Solution_Functions|null $functions |
| 42 |
* @param ABJ_404_Solution_RedirectsRepositoryInterface|null $redirectsRepo |
| 43 |
* @param ABJ_404_Solution_LogsRepositoryInterface|null $logsRepo |
| 44 |
* @param ABJ_404_Solution_Logging|null $logging |
| 45 |
* @param ABJ_404_Solution_PluginLogicOptionsResolver|null $optionsRepository |
| 46 |
* @param ABJ_404_Solution_PreviousRequestCookieTracker|null $previousRequestCookieTracker |
| 47 |
* @param ABJ_404_Solution_NearMissRecorder|null $nearMissRecorder |
| 48 |
*/ |
| 49 |
public function __construct($functions = null, $redirectsRepo = null, $logsRepo = null, |
| 50 |
$logging = null, $optionsRepository = null, $previousRequestCookieTracker = null, |
| 51 |
$nearMissRecorder = null) { |
| 52 |
$this->functions = $functions; |
| 53 |
$this->redirectsRepo = $redirectsRepo; |
| 54 |
$this->logsRepo = $logsRepo; |
| 55 |
$this->logging = $logging; |
| 56 |
$this->optionsRepository = $optionsRepository; |
| 57 |
$this->previousRequestCookieTracker = $previousRequestCookieTracker; |
| 58 |
$this->nearMissRecorder = $nearMissRecorder; |
| 59 |
} |
| 60 |
} |
| 61 |
|