| Total Complexity | 3 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | class ForceState |
||
| 32 | { |
||
| 33 | use Helper\DonorAwareTrait; |
||
| 34 | |||
| 35 | /** @var string */ |
||
| 36 | private $newStateId; |
||
| 37 | |||
| 38 | /** @var string */ |
||
| 39 | private $desc; |
||
| 40 | |||
| 41 | public function __construct(Donor $donor, string $newStateId, string $desc) |
||
| 42 | { |
||
| 43 | $this->setDonor($donor); |
||
| 44 | $this->newStateId = $newStateId; |
||
| 45 | $this->desc = $desc; |
||
| 46 | } |
||
| 47 | |||
| 48 | public function getNewStateId(): string |
||
| 49 | { |
||
| 50 | return $this->newStateId; |
||
| 51 | } |
||
| 52 | |||
| 53 | public function getUpdateDescription(): string |
||
| 56 | } |
||
| 57 | } |
||
| 58 |