/var/www/vhosts/nabawater/vendor/symfony/console/Helper
NameSizeModeActions
DebugFormatterHelper.php41680664editdlrm
DescriptorHelper.php25940664editdlrm
FormatterHelper.php29430664editdlrm
Helper.php37600664editdlrm
HelperInterface.php8800664editdlrm
HelperSet.php24970664editdlrm
InputAwareHelper.php7470664editdlrm
ProcessHelper.php48510664editdlrm
ProgressBar.php172130664editdlrm
ProgressIndicator.php78960664editdlrm
QuestionHelper.php153990664editdlrm
SymfonyQuestionHelper.php40740664editdlrm
Table.php200600664editdlrm
TableCell.php16480664editdlrm
TableSeparator.php5310664editdlrm
TableStyle.php52380664editdlrm
Edit: /var/www/vhosts/nabawater/vendor/symfony/console/Helper/TableCell.php (1648B)
* * 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 $value; private $options = [ 'rowspan' => 1, 'colspan' => 1, ]; /** * @param string $value * @param array $options */ public function __construct($value = '', array $options = []) { if (is_numeric($value) && !\is_string($value)) { $value = (string) $value; } $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))); } $this->options = array_merge($this->options, $options); } /** * Returns the cell value. * * @return string */ public function __toString() { return $this->value; } /** * Gets number of colspan. * * @return int */ public function getColspan() { return (int) $this->options['colspan']; } /** * Gets number of rowspan. * * @return int */ public function getRowspan() { return (int) $this->options['rowspan']; } }