| 1 |
<?php |
| 2 |
|
| 3 |
if (!defined('ABSPATH')) { |
| 4 |
exit; |
| 5 |
} |
| 6 |
|
| 7 |
/** |
| 8 |
* Optional dependency bundle for |
| 9 |
* {@see ABJ_404_Solution_SpellChecker::__construct()}. |
| 10 |
* |
| 11 |
* Replaces a 7-positional-parameter constructor (criterion 220 Interface |
| 12 |
* Size). Every field is nullable and defaults to null; the consumer keeps |
| 13 |
* its per-field ?? abj_service(...) resolution, its abj_service_optional |
| 14 |
* notFoundResponse path, and the special branch that falls back the |
| 15 |
* viewReadService to a raw contentRepository exposing getRedirectsWithRegEx. |
| 16 |
* Fields are untyped to preserve the constructor's null-tolerant parameters. |
| 17 |
*/ |
| 18 |
// allow-no-test-found: pure dependency-bundle DTO (nullable public fields, constructor-only assignment, no behavior); fields consumed by ABJ_404_Solution_SpellChecker, constructed and exercised in SpellCheckerAlgorithmTest and SpellCheckerHighLevelTest. |
| 19 |
class ABJ_404_Solution_SpellCheckerDependencies { |
| 20 |
|
| 21 |
/** @var ABJ_404_Solution_Functions|null */ |
| 22 |
public $functions; |
| 23 |
|
| 24 |
/** @var ABJ_404_Solution_PluginLogic|null */ |
| 25 |
public $pluginLogic; |
| 26 |
|
| 27 |
/** @var ABJ_404_Solution_ContentRepository|null */ |
| 28 |
public $contentRepository; |
| 29 |
|
| 30 |
/** @var ABJ_404_Solution_Logging|null */ |
| 31 |
public $logging; |
| 32 |
|
| 33 |
/** @var ABJ_404_Solution_PermalinkCache|null */ |
| 34 |
public $permalinkCache; |
| 35 |
|
| 36 |
/** @var ABJ_404_Solution_NGramFilter|null */ |
| 37 |
public $ngramFilter; |
| 38 |
|
| 39 |
/** @var ABJ_404_Solution_ViewReadService|null */ |
| 40 |
public $viewReadService; |
| 41 |
|
| 42 |
/** |
| 43 |
* @param ABJ_404_Solution_Functions|null $functions |
| 44 |
* @param ABJ_404_Solution_PluginLogic|null $pluginLogic |
| 45 |
* @param ABJ_404_Solution_ContentRepository|null $contentRepository |
| 46 |
* @param ABJ_404_Solution_Logging|null $logging |
| 47 |
* @param ABJ_404_Solution_PermalinkCache|null $permalinkCache |
| 48 |
* @param ABJ_404_Solution_NGramFilter|null $ngramFilter |
| 49 |
* @param ABJ_404_Solution_ViewReadService|null $viewReadService |
| 50 |
*/ |
| 51 |
public function __construct($functions = null, $pluginLogic = null, $contentRepository = null, |
| 52 |
$logging = null, $permalinkCache = null, $ngramFilter = null, $viewReadService = null) { |
| 53 |
$this->functions = $functions; |
| 54 |
$this->pluginLogic = $pluginLogic; |
| 55 |
$this->contentRepository = $contentRepository; |
| 56 |
$this->logging = $logging; |
| 57 |
$this->permalinkCache = $permalinkCache; |
| 58 |
$this->ngramFilter = $ngramFilter; |
| 59 |
$this->viewReadService = $viewReadService; |
| 60 |
} |
| 61 |
} |
| 62 |
|