| 1 | <?php  | 
            ||
| 9 | class PrefixedExchangesClient implements Client  | 
            ||
| 10 | { | 
            ||
| 11 | const  | 
            ||
| 12 | DELIMITER = '.';  | 
            ||
| 13 | |||
| 14 | use LoggerAwareTrait;  | 
            ||
| 15 | |||
| 16 | private  | 
            ||
| 17 | $client,  | 
            ||
| 
                                                                                                                                                        
                         2 ignored issues 
                            –
                            show
                         | 
                |||
| 18 | $exchangesPrefix;  | 
            ||
| 19 | |||
| 20 | public function __construct(Client $client, $exchangesPrefix)  | 
            ||
| 25 | |||
| 26 | public function publish($exchangeName, WritableMessage $message)  | 
            ||
| 33 | |||
| 34 | private function computeExchangeName($exchangeName)  | 
            ||
| 48 | |||
| 49 | public function getQueue($queueName)  | 
            ||
| 53 | |||
| 54 | public function getExchange($exchangeName)  | 
            ||
| 58 | }  | 
            ||
| 59 | 
Only declaring a single property per statement allows you to later on add doc comments more easily.
It is also recommended by PSR2, so it is a common style that many people expect.