| 1 | <?php |
||
| 15 | final class ActionDto |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | private $action; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * ActionDto Named Constructor to build several Action DTOs provided by an Array. |
||
| 24 | * |
||
| 25 | * @param array $data |
||
| 26 | * |
||
| 27 | * @return ActionDto[] |
||
| 28 | */ |
||
| 29 | public static function createMultiple(array $data) |
||
| 39 | |||
| 40 | /** |
||
| 41 | * ActionDto Private Constructor. |
||
| 42 | * |
||
| 43 | * @param $action |
||
| 44 | */ |
||
| 45 | private function __construct($action) |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @return string |
||
| 52 | */ |
||
| 53 | public function getAction() |
||
| 57 | } |
||
| 58 |