@@ -47,6 +47,51 @@ public function withGlobPattern(string $globPattern): self
4747 );
4848 }
4949
50+ public function sortFromDirectoriesToFiles (bool $ enabled = true ): self
51+ {
52+ return new self (
53+ directory: $ this ->directory ,
54+ globPattern: $ this ->globPattern ,
55+ sortFromDirectoriesToFiles: $ enabled ,
56+ sortAlphabetically: $ this ->sortAlphabetically ,
57+ keepLicense: $ this ->keepLicense ,
58+ keepReadme: $ this ->keepReadme ,
59+ keepGlobPattern: $ this ->keepGlobPattern ,
60+ alignExportIgnores: $ this ->alignExportIgnores ,
61+ enforceStrictOrderComparison: $ this ->enforceStrictOrderComparison ,
62+ );
63+ }
64+
65+ public function sortAlphabetically (bool $ enabled = true ): self
66+ {
67+ return new self (
68+ directory: $ this ->directory ,
69+ globPattern: $ this ->globPattern ,
70+ sortFromDirectoriesToFiles: $ this ->sortFromDirectoriesToFiles ,
71+ sortAlphabetically: $ enabled ,
72+ keepLicense: $ this ->keepLicense ,
73+ keepReadme: $ this ->keepReadme ,
74+ keepGlobPattern: $ this ->keepGlobPattern ,
75+ alignExportIgnores: $ this ->alignExportIgnores ,
76+ enforceStrictOrderComparison: $ this ->enforceStrictOrderComparison ,
77+ );
78+ }
79+
80+ public function keepGlobPattern (string $ keepGlobPattern ): self
81+ {
82+ return new self (
83+ directory: $ this ->directory ,
84+ globPattern: $ this ->globPattern ,
85+ sortFromDirectoriesToFiles: $ this ->sortFromDirectoriesToFiles ,
86+ sortAlphabetically: $ this ->sortAlphabetically ,
87+ keepLicense: $ this ->keepLicense ,
88+ keepReadme: $ this ->keepReadme ,
89+ keepGlobPattern: $ keepGlobPattern ,
90+ alignExportIgnores: $ this ->alignExportIgnores ,
91+ enforceStrictOrderComparison: $ this ->enforceStrictOrderComparison ,
92+ );
93+ }
94+
5095 public function keepLicense (bool $ enabled = true ): self
5196 {
5297 return new self (
0 commit comments