We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b91ae1e commit 4ba1a6fCopy full SHA for 4ba1a6f
1 file changed
src/app/Packages/Features/QueryUseCases/Dto/RegionCountDto.php
@@ -0,0 +1,19 @@
1
+<?php
2
+
3
+namespace App\Packages\Features\QueryUseCases\Dto;
4
5
+class RegionCountDto
6
+{
7
+ public function __construct(
8
+ public readonly string $region,
9
+ public readonly int $count
10
+ ) {}
11
12
+ public function toArray(): array
13
+ {
14
+ return [
15
+ 'region' => $this->region,
16
+ 'count' => $this->count,
17
+ ];
18
+ }
19
+}
0 commit comments