* * 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, '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. * * @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']; } public function getStyle(): ?TableCellStyle { return $this->options['style']; } } __halt_compiler();----SIGNATURE:----m4QD5s0Wm+RCTzqZRCEbkV2wyfymfNVqBkJTRQlEbmmlmCytuvvDKL34yziEFecDBgUGFFpHYEXvFbVePebt4wjMoUSDzoaBxQt4DkYUDDHvIQ3jKwO7PizRYnRCsTdll6lLYndrpNxooRcgj8yHgAU8DSr7ZmcVBOCTAzzUfdPlWsYD7Rj0dT3OjAU6s11P/3h5+v07HeJ/D6W52vXxMxuSuyrQ4gf4Sa/EAtlyfOB1JoSlhGHN7RVpld21jIaTfOUT8Rp9T8a8fszFFefcGbA7dKykNVK9cEu0EIi+J5KPwoe8YM5XCQMgeC88MhiRv+3ey9sLqm8T7IkH9iFSsHNd1GdnfJM+WqWuJUIynC0e+Wr3Z/6vGBmhkwJMgsYViyf2Y3ltxOEIsbSDh9QnGRTD2jrlm0Kfu/vAgtcg1Nfbkxkqe4KOarzxfBvMks1JuYTA8hRBmXOwQZUekfrefS2cMPf8jTbOPD7gez21iHsSNaWAvYAe6m30TuzSeZOMH4xyHkGr6Zg7C3xktcnbjk6TdVYpgkwbadXIVQ37iWcSLJ2Jupj0NDxyQ6auaLjtwGK9TmONIu41M4Kn9Hs/RXRUOW2qdi9qPtEKOVNDDk/llLR3/NN8s3ZeEbO6KncjWgj83UvUim59J5haFCVGFtfoZmO//Ord7iJ9Vlvha5E=----ATTACHMENT:----MTI0MDcyNDU5Mjg5NTAwOCA5MDAxNzc1NjQzMDE1NjgwIDQ2NDg0NDQ4MjA3NTcwMzU=