Skip to content

Commit 5ec4d6e

Browse files
committed
Merge branch 'refactor-builder'
2 parents 88ca168 + f8725b8 commit 5ec4d6e

30 files changed

+820
-504
lines changed

lib/lk-util/Command/Generate/Concept/GenerateCommand.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ abstract class GenerateCommand extends Command
3636
protected const VISIBILITY_PUBLIC = 'public';
3737
protected const VISIBILITY_PROTECTED = 'protected';
3838
protected const VISIBILITY_PRIVATE = 'private';
39-
40-
private const TAB = ' ';
39+
protected const TAB = ' ';
4140

4241
protected ?string $OutputDescription;
4342
protected ?bool $ToStdout;
@@ -482,11 +481,12 @@ protected function generateGetter(
482481
string $name,
483482
string $valueCode,
484483
$phpDoc = '@internal',
485-
string $returnType = 'string'
484+
string $returnType = 'string',
485+
string $visibility = GenerateCommand::VISIBILITY_PROTECTED
486486
): array {
487487
$lines = [
488488
...$this->generatePhpDocBlock($phpDoc),
489-
sprintf('protected static function %s(): %s', $name, $returnType),
489+
sprintf('%s static function %s(): %s', $visibility, $name, $returnType),
490490
'{',
491491
sprintf('%sreturn %s;', self::TAB, $valueCode),
492492
'}'

0 commit comments

Comments
 (0)