| 1 | <?php |
||
| 14 | class SettingsController extends AbstractActionController |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @var BookingOptions |
||
| 18 | */ |
||
| 19 | protected $bookingOptions; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param BookingOptions $bookingOptions |
||
| 23 | */ |
||
| 24 | public function __construct(BookingOptions $bookingOptions) |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Get Settings |
||
| 31 | * |
||
| 32 | * @return JsonModel |
||
| 33 | */ |
||
| 34 | public function getAction() |
||
| 43 | } |
||
| 44 |
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: