| 1 | <?php |
||
| 10 | class Dumper |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * The connection. |
||
| 14 | * |
||
| 15 | * @var \Symfony\Component\VarDumper\Server\Connection|null |
||
| 16 | */ |
||
| 17 | private $connection; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Dumper constructor. |
||
| 21 | * |
||
| 22 | * @param \Symfony\Component\VarDumper\Server\Connection|null $connection |
||
| 23 | * @return void |
||
|
|
|||
| 24 | */ |
||
| 25 | public function __construct(Connection $connection = null) |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Dump a value with elegance. |
||
| 32 | * |
||
| 33 | * @param mixed $value |
||
| 34 | * @return void |
||
| 35 | */ |
||
| 36 | public function dump($value) |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @return VarCloner |
||
| 52 | */ |
||
| 53 | protected function createVarCloner(): VarCloner |
||
| 57 | } |
||
| 58 |
Adding a
@returnannotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.