PluginProbe
404 Solution / 4.3.0
404 Solution v4.3.0
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 / services / RequestIgnoreNormalizerDependencies.php

RequestIgnoreNormalizerDependencies.php in 404 Solution 4.3.0, at includes/services/RequestIgnoreNormalizerDependencies.php

58 lines 2.2 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 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