| 1 | <?php |
||
| 28 | class Printer |
||
| 29 | { |
||
| 30 | /** @var array */ |
||
| 31 | protected $parsed; |
||
| 32 | |||
| 33 | /** @var PrettyPrinterAbstract */ |
||
| 34 | protected $printer; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @param PrettyPrinterAbstract $printer |
||
| 38 | */ |
||
| 39 | public function __construct(PrettyPrinterAbstract $printer) |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @param array $parsed |
||
| 46 | * |
||
| 47 | * @return Printer |
||
| 48 | */ |
||
| 49 | public function setStatement(array $parsed): Printer |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @return null|string |
||
| 58 | */ |
||
| 59 | public function display(): ?string |
||
| 63 | |||
| 64 | /** |
||
| 65 | * @param string $fileName |
||
| 66 | */ |
||
| 67 | public function putFile(string $fileName): void |
||
| 71 | } |
||
| 72 |