| 1 |
<?php |
| 2 |
|
| 3 |
if (!defined('ABSPATH')) { |
| 4 |
exit; |
| 5 |
} |
| 6 |
|
| 7 |
/** |
| 8 |
* Optional dependency bundle for |
| 9 |
* {@see ABJ_404_Solution_WordPress_Connector::__construct()}. |
| 10 |
* |
| 11 |
* Replaces a 7-positional-parameter constructor (criterion 220 Interface |
| 12 |
* Size). Every field is nullable; the connector keeps its per-field |
| 13 |
* ?? abj_service(...) resolution and its duck-typed logsRepository / |
| 14 |
* statsRepository fallbacks (which inspect the raw redirectsRepository). |
| 15 |
* Fields are untyped to preserve the existing null-tolerant parameters. |
| 16 |
*/ |
| 17 |
// allow-no-test-found: pure dependency-bundle DTO (nullable public fields, constructor-only assignment, no behavior); fields consumed by ABJ_404_Solution_WordPress_Connector, which is constructed and exercised in WordPressConnectorStaticMethodsTest and WordPressConnectorAdminLinkFilterTest. |
| 18 |
class ABJ_404_Solution_WordPressConnectorDependencies { |
| 19 |
|
| 20 |
/** @var ABJ_404_Solution_PluginLogic|null */ |
| 21 |
public $pluginLogic; |
| 22 |
|
| 23 |
/** @var ABJ_404_Solution_RedirectsRepository|null */ |
| 24 |
public $redirectsRepository; |
| 25 |
|
| 26 |
/** @var ABJ_404_Solution_Logging|null */ |
| 27 |
public $logging; |
| 28 |
|
| 29 |
/** @var ABJ_404_Solution_Functions|null */ |
| 30 |
public $functions; |
| 31 |
|
| 32 |
/** @var ABJ_404_Solution_SpellChecker|null */ |
| 33 |
public $spellChecker; |
| 34 |
|
| 35 |
/** @var mixed|null */ |
| 36 |
public $logsRepository; |
| 37 |
|
| 38 |
/** @var mixed|null */ |
| 39 |
public $statsRepository; |
| 40 |
|
| 41 |
/** |
| 42 |
* @param ABJ_404_Solution_PluginLogic|null $pluginLogic |
| 43 |
* @param ABJ_404_Solution_RedirectsRepository|null $redirectsRepository |
| 44 |
* @param ABJ_404_Solution_Logging|null $logging |
| 45 |
* @param ABJ_404_Solution_Functions|null $functions |
| 46 |
* @param ABJ_404_Solution_SpellChecker|null $spellChecker |
| 47 |
* @param mixed|null $logsRepository |
| 48 |
* @param mixed|null $statsRepository |
| 49 |
*/ |
| 50 |
public function __construct($pluginLogic = null, $redirectsRepository = null, $logging = null, |
| 51 |
$functions = null, $spellChecker = null, $logsRepository = null, $statsRepository = null) { |
| 52 |
$this->pluginLogic = $pluginLogic; |
| 53 |
$this->redirectsRepository = $redirectsRepository; |
| 54 |
$this->logging = $logging; |
| 55 |
$this->functions = $functions; |
| 56 |
$this->spellChecker = $spellChecker; |
| 57 |
$this->logsRepository = $logsRepository; |
| 58 |
$this->statsRepository = $statsRepository; |
| 59 |
} |
| 60 |
} |
| 61 |
|