| 1 | <?php |
||
| 25 | class LocaleRepository implements LocaleRepositoryInterface |
||
| 26 | { |
||
| 27 | /** |
||
| 28 | * @var LocaleStorageDriver |
||
| 29 | */ |
||
| 30 | private $localeStorageDriver; |
||
| 31 | |||
| 32 | public function __construct(LocaleStorageDriver $localeStorageDriver) |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @return Locale |
||
|
|
|||
| 39 | */ |
||
| 40 | public function findLocale() |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @param Locale $locale |
||
| 47 | */ |
||
| 48 | public function save(Locale $locale) |
||
| 52 | } |
||
| 53 |
This check compares the return type specified in the
@returnannotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.