| 1 | <?php  | 
            ||
| 9 | class Count implements Snippet, Selectable  | 
            ||
| 10 | { | 
            ||
| 11 | private  | 
            ||
| 12 | $columnName,  | 
            ||
| 
                                                                                                                                                        
                         1 ignored issue 
                            –
                            show
                         | 
                |||
| 13 | $alias;  | 
            ||
| 14 | |||
| 15 | /**  | 
            ||
| 16 | * @param Snippet|string $columnName  | 
            ||
| 17 | */  | 
            ||
| 18 | 11 | public function __construct($columnName, ?string $alias = null)  | 
            |
| 28 | |||
| 29 | 9 | public function toString(): string  | 
            |
| 36 | |||
| 37 | 9 | private function buildCountSnippet(): string  | 
            |
| 48 | |||
| 49 | 9 | private function buildAliasSnippet(): string  | 
            |
| 60 | }  | 
            ||
| 61 | 
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.