platform/api/symfony/Component/Console/Helper/TableCell.yaml
2024-09-02 10:44:11 -07:00

37 lines
1.5 KiB
YAML

name: TableCell
class_comment: '# * @author Abdellatif Ait boudad <a.aitboudad@gmail.com>'
dependencies:
- name: InvalidArgumentException
type: class
source: Symfony\Component\Console\Exception\InvalidArgumentException
properties: []
methods:
- name: __toString
visibility: public
parameters: []
comment: "# * @author Abdellatif Ait boudad <a.aitboudad@gmail.com>\n# */\n# class\
\ TableCell\n# {\n# private array $options = [\n# 'rowspan' => 1,\n# 'colspan'\
\ => 1,\n# 'style' => null,\n# ];\n# \n# public function __construct(\n# private\
\ string $value = '',\n# array $options = [],\n# ) {\n# // check option names\n\
# if ($diff = array_diff(array_keys($options), array_keys($this->options))) {\n\
# throw new InvalidArgumentException(\\sprintf('The TableCell does not support\
\ the following options: \\'%s\\'.', implode('\\', \\'', $diff)));\n# }\n# \n\
# if (isset($options['style']) && !$options['style'] instanceof TableCellStyle)\
\ {\n# throw new InvalidArgumentException('The style option must be an instance\
\ of \"TableCellStyle\".');\n# }\n# \n# $this->options = array_merge($this->options,\
\ $options);\n# }\n# \n# /**\n# * Returns the cell value."
- name: getColspan
visibility: public
parameters: []
comment: '# * Gets number of colspan.'
- name: getRowspan
visibility: public
parameters: []
comment: '# * Gets number of rowspan.'
- name: getStyle
visibility: public
parameters: []
comment: null
traits:
- Symfony\Component\Console\Exception\InvalidArgumentException
interfaces: []