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 / services / NotFoundResponseDependencies.php

NotFoundResponseDependencies.php in 404 Solution trunk, at includes/services/NotFoundResponseDependencies.php

61 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_NotFoundResponseService::__construct()}.
10 *
11 * Replaces a 6-positional-parameter constructor (criterion 220 Interface
12 * Size). Every field is nullable; the consumer keeps its per-field
13 * `?? abj_service(...)` resolution. Fields are untyped to preserve the
14 * constructor's existing null-tolerant interface parameters.
15 */
16 // allow-no-test-found: pure dependency-bundle DTO (nullable public fields, constructor-only assignment, no behavior); fields consumed by ABJ_404_Solution_NotFoundResponseService, constructed and exercised in NotFoundResponseServiceTest.
17 class ABJ_404_Solution_NotFoundResponseDependencies {
18
19 /** @var ABJ_404_Solution_Functions|null */
20 public $functions;
21
22 /** @var ABJ_404_Solution_RedirectsRepositoryInterface|null */
23 public $redirectsRepo;
24
25 /** @var ABJ_404_Solution_LogsRepositoryInterface|null */
26 public $logsRepo;
27
28 /** @var ABJ_404_Solution_Logging|null */
29 public $logging;
30
31 /** @var ABJ_404_Solution_PluginLogicOptionsResolver|null */
32 public $optionsRepository;
33
34 /** @var ABJ_404_Solution_PreviousRequestCookieTracker|null */
35 public $previousRequestCookieTracker;
36
37 /** @var ABJ_404_Solution_NearMissRecorder|null */
38 public $nearMissRecorder;
39
40 /**
41 * @param ABJ_404_Solution_Functions|null $functions
42 * @param ABJ_404_Solution_RedirectsRepositoryInterface|null $redirectsRepo
43 * @param ABJ_404_Solution_LogsRepositoryInterface|null $logsRepo
44 * @param ABJ_404_Solution_Logging|null $logging
45 * @param ABJ_404_Solution_PluginLogicOptionsResolver|null $optionsRepository
46 * @param ABJ_404_Solution_PreviousRequestCookieTracker|null $previousRequestCookieTracker
47 * @param ABJ_404_Solution_NearMissRecorder|null $nearMissRecorder
48 */
49 public function __construct($functions = null, $redirectsRepo = null, $logsRepo = null,
50 $logging = null, $optionsRepository = null, $previousRequestCookieTracker = null,
51 $nearMissRecorder = null) {
52 $this->functions = $functions;
53 $this->redirectsRepo = $redirectsRepo;
54 $this->logsRepo = $logsRepo;
55 $this->logging = $logging;
56 $this->optionsRepository = $optionsRepository;
57 $this->previousRequestCookieTracker = $previousRequestCookieTracker;
58 $this->nearMissRecorder = $nearMissRecorder;
59 }
60 }
61