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 / admin / RedirectDestinationWarningContext.php

RedirectDestinationWarningContext.php in 404 Solution 4.3.0, at includes/admin/RedirectDestinationWarningContext.php

54 lines 1.6 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 * Parameter object for the destination-warning resolution facade,
9 * {@see ABJ_404_Solution_View_RedirectsTable::resolveDestinationWarnings()}.
10 *
11 * Replaces a 6-positional-parameter facade signature (criterion 220
12 * Interface Size). Plain data carrier read directly by the consumer.
13 * $rowType is untyped to mirror the policy's existing mixed parameter.
14 */
15 // allow-no-test-found: pure parameter-object DTO (typed public fields, constructor-only assignment, no behavior); fields consumed by View_RedirectsTable::resolveDestinationWarnings().
16 class ABJ_404_Solution_RedirectDestinationWarningContext {
17
18 /** @var array<string, mixed> */
19 public array $row;
20
21 /** @var mixed */
22 public $rowType;
23
24 /** @var string */
25 public string $rowFinalDest;
26
27 /** @var string */
28 public string $destForView;
29
30 /** @var bool */
31 public bool $destinationIsMissing;
32
33 /** @var array<mixed> */
34 public array $deadDestIds;
35
36 /**
37 * @param array<string, mixed> $row
38 * @param mixed $rowType
39 * @param string $rowFinalDest
40 * @param string $destForView
41 * @param bool $destinationIsMissing
42 * @param array<mixed> $deadDestIds
43 */
44 public function __construct(array $row, $rowType, string $rowFinalDest, string $destForView,
45 bool $destinationIsMissing, array $deadDestIds) {
46 $this->row = $row;
47 $this->rowType = $rowType;
48 $this->rowFinalDest = $rowFinalDest;
49 $this->destForView = $destForView;
50 $this->destinationIsMissing = $destinationIsMissing;
51 $this->deadDestIds = $deadDestIds;
52 }
53 }
54