Lines
n/a
0 / 0
Functions and Methods
n/a
0 / 0
Classes and Traits
n/a
0 / 0
| Name | Lines | Functions and Methods | CRAP | Classes and Traits | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | <?php | |
| 2 | ||
| 3 | declare(strict_types=1); | |
| 4 | ||
| 5 | namespace Districts\Core\Domain; | |
| 6 | ||
| 7 | interface CityRepository | |
| 8 | { | |
| 9 | public function get(int $id): City; | |
| 10 | ||
| 11 | public function findByName(string $name): ?City; | |
| 12 | ||
| 13 | /** | |
| 14 | * @return City[] | |
| 15 | */ | |
| 16 | public function list(): array; | |
| 17 | ||
| 18 | public function add(City $city): void; | |
| 19 | ||
| 20 | public function update(City $city): void; | |
| 21 | } |