| 1 | <?php |
||
| 9 | class SearchHandler |
||
| 10 | { |
||
| 11 | public function handle(SearchCommand $command) |
||
| 15 | |||
| 16 | protected function buildSpecification(SearchCommand $command) |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param SearchCommand $command |
||
| 25 | * @return BaseRepository |
||
| 26 | */ |
||
| 27 | protected function getRepository(SearchCommand $command) |
||
| 31 | |||
| 32 | protected function getQueryOptions(SearchCommand $command) |
||
| 39 | } |
||
| 40 |
If you implement
__calland you know which methods are available, you can improve IDE auto-completion and static analysis by adding a @method annotation to the class.This is often the case, when
__callis implemented by a parent class and only the child class knows which methods exist: