Skip to content

Commit 4ba1a6f

Browse files
committed
feat: create new DTO about RegionCountDto
1 parent b91ae1e commit 4ba1a6f

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)