File Manager Lite
Dir:
/home/codewavebd/public_html/vendor/symfony/console/Helper
Upload
[..]
DescriptorHelper.php (2.56 KB)
Edit
Rename
Del
Dumper.php (1.64 KB)
Edit
Rename
Del
FormatterHelper.php (2.19 KB)
Edit
Rename
Del
Helper.php (4.57 KB)
Edit
Rename
Del
HelperSet.php (1.79 KB)
Edit
Rename
Del
InputAwareHelper.php (731 B)
Edit
Rename
Del
OutputWrapper.php (2.94 KB)
Edit
Rename
Del
ProgressBar.php (20.39 KB)
Edit
Rename
Del
ProgressIndicator.php (7.76 KB)
Edit
Rename
Del
QuestionHelper.php (20.28 KB)
Edit
Rename
Del
SymfonyQuestionHelper.php (3.2 KB)
Edit
Rename
Del
Table.php (33.77 KB)
Edit
Rename
Del
TableCell.php (1.69 KB)
Edit
Rename
Del
TableCellStyle.php (2.17 KB)
Edit
Rename
Del
TableRows.php (536 B)
Edit
Rename
Del
TableSeparator.php (531 B)
Edit
Rename
Del
TableStyle.php (12.78 KB)
Edit
Rename
Del
TreeHelper.php (2.84 KB)
Edit
Rename
Del
TreeNode.php (2.31 KB)
Edit
Rename
Del
TreeStyle.php (2.26 KB)
Edit
Rename
Del
Edit: TreeStyle.php
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Console\Helper; /** * Configures the output of the Tree helper. * * @author Simon André <smn.andre@gmail.com> */ final class TreeStyle { public function __construct( private readonly string $prefixEndHasNext, private readonly string $prefixEndLast, private readonly string $prefixLeft, private readonly string $prefixMidHasNext, private readonly string $prefixMidLast, private readonly string $prefixRight, ) { } public static function box(): self { return new self('┃╸ ', '┗╸ ', '', '┃ ', ' ', ''); } public static function boxDouble(): self { return new self('╠═ ', '╚═ ', '', '║ ', ' ', ''); } public static function compact(): self { return new self('├ ', '└ ', '', '│ ', ' ', ''); } public static function default(): self { return new self('├── ', '└── ', '', '│ ', ' ', ''); } public static function light(): self { return new self('|-- ', '`-- ', '', '| ', ' ', ''); } public static function minimal(): self { return new self('. ', '. ', '', '. ', ' ', ''); } public static function rounded(): self { return new self('├─ ', '╰─ ', '', '│ ', ' ', ''); } /** * @internal */ public function applyPrefixes(\RecursiveTreeIterator $iterator): void { $iterator->setPrefixPart(\RecursiveTreeIterator::PREFIX_LEFT, $this->prefixLeft); $iterator->setPrefixPart(\RecursiveTreeIterator::PREFIX_MID_HAS_NEXT, $this->prefixMidHasNext); $iterator->setPrefixPart(\RecursiveTreeIterator::PREFIX_MID_LAST, $this->prefixMidLast); $iterator->setPrefixPart(\RecursiveTreeIterator::PREFIX_END_HAS_NEXT, $this->prefixEndHasNext); $iterator->setPrefixPart(\RecursiveTreeIterator::PREFIX_END_LAST, $this->prefixEndLast); $iterator->setPrefixPart(\RecursiveTreeIterator::PREFIX_RIGHT, $this->prefixRight); } }
Simpan