1 | <?php |
||
15 | final class RouteDto |
||
16 | { |
||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | private $id; |
||
21 | |||
22 | /** |
||
23 | * @var int |
||
24 | */ |
||
25 | private $priority; |
||
26 | |||
27 | /** |
||
28 | * @var string |
||
29 | */ |
||
30 | private $filter; |
||
31 | |||
32 | /** |
||
33 | * @var ActionDto[] |
||
34 | */ |
||
35 | private $actions; |
||
36 | |||
37 | /** |
||
38 | * @var string |
||
39 | */ |
||
40 | private $description; |
||
41 | |||
42 | /** |
||
43 | * @var \DateTime |
||
44 | */ |
||
45 | private $createdAt; |
||
46 | |||
47 | /** |
||
48 | * RouteDto Named Constructor. |
||
49 | * |
||
50 | * @param array $data |
||
51 | * |
||
52 | * @return RouteDto |
||
53 | */ |
||
54 | public static function create(array $data) |
||
65 | |||
66 | /** |
||
67 | * RouteDto Private Constructor. |
||
68 | * |
||
69 | * @param string $id |
||
70 | * @param int $priority |
||
71 | * @param string $expression |
||
72 | * @param array $actions |
||
73 | * @param string $description |
||
74 | * @param string $createdAt |
||
75 | */ |
||
76 | private function __construct($id, $priority, $expression, $actions, $description, $createdAt) |
||
85 | |||
86 | /** |
||
87 | * @return mixed |
||
88 | */ |
||
89 | public function getId() |
||
93 | |||
94 | /** |
||
95 | * @return mixed |
||
96 | */ |
||
97 | public function getActions() |
||
101 | |||
102 | /** |
||
103 | * @return mixed |
||
104 | */ |
||
105 | public function getDescription() |
||
109 | |||
110 | /** |
||
111 | * @return mixed |
||
112 | */ |
||
113 | public function getFilter() |
||
117 | |||
118 | /** |
||
119 | * @return mixed |
||
120 | */ |
||
121 | public function getPriority() |
||
125 | |||
126 | /** |
||
127 | * @return mixed |
||
128 | */ |
||
129 | public function getCreatedAt() |
||
133 | } |
||
134 |