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