| 1 | <?php |
||
| 8 | class Sender |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var RequestsContainer |
||
| 12 | */ |
||
| 13 | protected $requestsContainer; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @param RequestsContainer $requestsContainer |
||
| 17 | */ |
||
| 18 | public function __construct(RequestsContainer $requestsContainer) |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Proxies all methods to appropriate Request object |
||
| 25 | * |
||
| 26 | * @param string $method |
||
| 27 | * @param array $arguments |
||
| 28 | * @return array |
||
| 29 | */ |
||
| 30 | public function __call($method, $arguments) |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @param RequestInterface $request |
||
| 41 | * @param string $method |
||
| 42 | * @param array $arguments |
||
| 43 | * @return mixed |
||
| 44 | */ |
||
| 45 | protected function callRequestMethod(RequestInterface $request, $method, array $arguments) |
||
| 55 | } |
According to the PSR-2, the body of a case statement must start on the line immediately following the case statement.
}
To learn more about the PSR-2 coding standard, please refer to the PHP-Fig.