OXIESEC PANEL
- Current Dir:
/
/
usr
/
share
/
php
/
Symfony
/
Component
/
Console
/
Helper
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
07/20/2024 06:32:21 AM
rwxr-xr-x
📄
DebugFormatterHelper.php
4.08 KB
03/05/2018 08:02:01 PM
rw-r--r--
📄
DescriptorHelper.php
2.55 KB
03/05/2018 08:02:01 PM
rw-r--r--
📄
FormatterHelper.php
2.89 KB
03/05/2018 08:02:01 PM
rw-r--r--
📄
Helper.php
3.72 KB
03/05/2018 08:02:01 PM
rw-r--r--
📄
HelperInterface.php
880 bytes
03/05/2018 08:02:01 PM
rw-r--r--
📄
HelperSet.php
2.45 KB
03/05/2018 08:02:01 PM
rw-r--r--
📄
InputAwareHelper.php
747 bytes
03/05/2018 08:02:01 PM
rw-r--r--
📄
ProcessHelper.php
4.74 KB
03/05/2018 08:02:01 PM
rw-r--r--
📄
ProgressBar.php
16.94 KB
03/05/2018 08:02:01 PM
rw-r--r--
📄
ProgressIndicator.php
7.76 KB
03/05/2018 08:02:01 PM
rw-r--r--
📄
QuestionHelper.php
14.27 KB
03/05/2018 08:02:01 PM
rw-r--r--
📄
SymfonyQuestionHelper.php
3.94 KB
03/05/2018 08:02:01 PM
rw-r--r--
📄
Table.php
19.67 KB
03/05/2018 08:02:01 PM
rw-r--r--
📄
TableCell.php
1.62 KB
03/05/2018 08:02:01 PM
rw-r--r--
📄
TableSeparator.php
536 bytes
03/05/2018 08:02:01 PM
rw-r--r--
📄
TableStyle.php
5.13 KB
03/05/2018 08:02:01 PM
rw-r--r--
Editing: TableCell.php
Close
<?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; use Symfony\Component\Console\Exception\InvalidArgumentException; /** * @author Abdellatif Ait boudad <a.aitboudad@gmail.com> */ class TableCell { private $value; private $options = array( 'rowspan' => 1, 'colspan' => 1, ); /** * @param string $value * @param array $options */ public function __construct($value = '', array $options = array()) { 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']; } }