* * 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:----nBFALBTVwbJrzhevBEDRC1OomI+oLXn903z/8HGNZ5gqVM53WUvP6J+Inj9yYc/1JgrZ9LMyPqPVRCepdNVspBsoF18rV7U5Lca2dSXJWH83irFcgPz9xnV+d1BiNvKrnNqJZQe7qu7X3+2DXb2m5lxVviYztlBpc3VK53XizbG1M7CDmo142g7tkz/LBsnzRIG9x6ptl38UQa73pJbxGeSN/pj+mrG1XgBIvg+/+QUNtOA8O+36U3SiPGl2FjatW7HecL52bYLGOGwPvAHrGQqSA+y33QKZngsJy1bbLltzMfeBxgarp5O77qwKlZqhOVjO5P4O8JfjqleF+oZR3JqE5XlHZk6G7lhMz087oCrBrvr1r0FJhO/uYCleE5fUB5aHa2rP/UsAEgkaLnoec3wGoKXnwBr5hTx18JoVwJE9E9k2DHOLCC1pexDucBHngS3D2VEtfhnBBPEJvMGwl2C0DNjpfwGcpLCiyS6oOlBx265W91lMycmnIG+ZRBHhxfyzm4FJwd2op8Sx/hwjmcfAybBTjg4octDDjSbX8WuoQQkmHs+aWuJ423UG99PZoJArtxzZ+IejLGDDxtk5NaRbAQN02P3o2rumiuY11livlEN9TAw6r8bMlu8LYmg1DsoyxWGyX9IVslPDNYb4tfCWJNfvHUXez52T+DHVor8=----ATTACHMENT:----NTY1NTUwNjMyMTU0OTk2NCA0MzQyMDQ4MzA1NjI5NjAzIDU0NzQ1MDQwMTMxMjEwNzE=