| 1 | <?php |
||
| 8 | class Inbounder |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Class constructor. |
||
| 12 | * |
||
| 13 | * @param App $app |
||
| 14 | */ |
||
| 15 | public function __construct($app) |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Create a new instance handler for the given gateway. |
||
| 22 | * |
||
| 23 | * @param string $name |
||
| 24 | * |
||
| 25 | * @return AbstractHandler |
||
| 26 | */ |
||
| 27 | protected function newHandlerInstanceFor($name) |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Return an instance of the gateway manager. |
||
| 38 | * |
||
| 39 | * @param string $gateway |
||
| 40 | * @param Request $request |
||
| 41 | * |
||
| 42 | * @return GatewayManager |
||
| 43 | */ |
||
| 44 | public function gateway($gateway, Request $request) |
||
| 48 | } |
||
| 49 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: