function TableCell::__construct
2 calls to TableCell::__construct()
- TableSeparator::__construct in vendor/
symfony/ console/ Helper/ TableSeparator.php - TableSeparator::__construct in vendor/
symfony/ console/ Helper/ TableSeparator.php
1 method overrides TableCell::__construct()
- TableSeparator::__construct in vendor/
symfony/ console/ Helper/ TableSeparator.php
File
-
vendor/
symfony/ console/ Helper/ TableCell.php, line 27
Class
- TableCell
- @author Abdellatif Ait boudad <a.aitboudad@gmail.com>
Namespace
Symfony\Component\Console\HelperCode
public function __construct(string $value = '', array $options = []) {
// 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);
}