PluginProbe
404 Solution / trunk
404 Solution vtrunk
4.3.5 4.3.4 4.3.3 4.3.2 4.3.1 4.3.0 4.2.0 4.1.19 4.1.18 4.1.17 4.1.16 4.1.15 4.1.13 4.1.12 4.1.11 4.1.10 4.1.9 4.1.8 4.1.7 4.1.6 4.1.5 4.1.4 4.1.3 trunk 2.30.0 All 109 releases
404-solution / includes / spelling / SpellCheckerDependencies.php

SpellCheckerDependencies.php in 404 Solution trunk, at includes/spelling/SpellCheckerDependencies.php

62 lines 2.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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