| 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 |
|