/var/www/vhosts/ihelp.ro/httpdocs/vendor/symfony/console/Helper
NameSizeModeActions
DebugFormatterHelper.php33200644editdlrm
DescriptorHelper.php26370644editdlrm
Dumper.php18280644editdlrm
FormatterHelper.php22350644editdlrm
Helper.php45620644editdlrm
HelperInterface.php8410644editdlrm
HelperSet.php18650644editdlrm
InputAwareHelper.php7460644editdlrm
OutputWrapper.php30080644editdlrm
ProcessHelper.php47510644editdlrm
ProgressBar.php195910644editdlrm
ProgressIndicator.php69890644editdlrm
QuestionHelper.php198380644editdlrm
SymfonyQuestionHelper.php32770644editdlrm
Table.php314000644editdlrm
TableCell.php17590644editdlrm
TableCellStyle.php22130644editdlrm
TableRows.php5900644editdlrm
TableSeparator.php5310644editdlrm
TableStyle.php127550644editdlrm
Edit: /var/www/vhosts/ihelp.ro/httpdocs/vendor/symfony/console/Helper/TableCell.php (1759B)
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Console\Helper; use Symfony\Component\Console\Exception\InvalidArgumentException; /** * @author Abdellatif Ait boudad */ class TableCell { private string $value; private array $options = [ 'rowspan' => 1, 'colspan' => 1, 'style' => null, ]; public function __construct(string $value = '', array $options = []) { $this->value = $value; // check option names if ($diff = array_diff(array_keys($options), array_keys($this->options))) { throw new InvalidArgumentException(sprintf('The TableCell does not support the following options: \'%s\'.', implode('\', \'', $diff))); } if (isset($options['style']) && !$options['style'] instanceof TableCellStyle) { throw new InvalidArgumentException('The style option must be an instance of "TableCellStyle".'); } $this->options = array_merge($this->options, $options); } /** * Returns the cell value. */ public function __toString(): string { return $this->value; } /** * Gets number of colspan. */ public function getColspan(): int { return (int) $this->options['colspan']; } /** * Gets number of rowspan. */ public function getRowspan(): int { return (int) $this->options['rowspan']; } public function getStyle(): ?TableCellStyle { return $this->options['style']; } }