File tree Expand file tree Collapse file tree 3 files changed +11
-10
lines changed Expand file tree Collapse file tree 3 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -772,9 +772,10 @@ Need to customize printer behavior? Create your own by inheriting the `Printer`
772
772
``` php
773
773
class MyPrinter extends Nette\PhpGenerator\Printer
774
774
{
775
- protected string $indentation = "\t";
776
- protected int $linesBetweenProperties = 0;
777
- protected int $linesBetweenMethods = 1;
778
- protected string $returnTypeColon = ': ';
775
+ public int $wrapLength = 120;
776
+ public string $indentation = "\t";
777
+ public int $linesBetweenProperties = 0;
778
+ public int $linesBetweenMethods = 2;
779
+ public string $returnTypeColon = ': ';
779
780
}
780
781
```
Original file line number Diff line number Diff line change @@ -21,10 +21,10 @@ class Printer
21
21
use Nette \SmartObject;
22
22
23
23
public int $ wrapLength = 120 ;
24
- protected string $ indentation = "\t" ;
25
- protected int $ linesBetweenProperties = 0 ;
26
- protected int $ linesBetweenMethods = 2 ;
27
- protected string $ returnTypeColon = ': ' ;
24
+ public string $ indentation = "\t" ;
25
+ public int $ linesBetweenProperties = 0 ;
26
+ public int $ linesBetweenMethods = 2 ;
27
+ public string $ returnTypeColon = ': ' ;
28
28
protected ?PhpNamespace $ namespace = null ;
29
29
protected ?Dumper $ dumper ;
30
30
private bool $ resolveTypes = true ;
Original file line number Diff line number Diff line change 15
15
*/
16
16
final class PsrPrinter extends Printer
17
17
{
18
- protected string $ indentation = ' ' ;
19
- protected int $ linesBetweenMethods = 1 ;
18
+ public string $ indentation = ' ' ;
19
+ public int $ linesBetweenMethods = 1 ;
20
20
}
You can’t perform that action at this time.
0 commit comments