You are here

public function TableCell::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/console/Helper/TableCell.php \Symfony\Component\Console\Helper\TableCell::__construct()

Parameters

string $value:

array $options:

1 call to TableCell::__construct()
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 36

Class

TableCell
@author Abdellatif Ait boudad <a.aitboudad@gmail.com>

Namespace

Symfony\Component\Console\Helper

Code

public function __construct($value = '', array $options = array()) {
  $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);
}