public function TableStyle::setPadType in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/console/Helper/TableStyle.php \Symfony\Component\Console\Helper\TableStyle::setPadType()
Sets cell padding type.
Parameters
int $padType STR_PAD_*:
Return value
File
- vendor/
symfony/ console/ Helper/ TableStyle.php, line 235
Class
- TableStyle
- Defines the styles for a Table.
Namespace
Symfony\Component\Console\HelperCode
public function setPadType($padType) {
if (!in_array($padType, array(
STR_PAD_LEFT,
STR_PAD_RIGHT,
STR_PAD_BOTH,
), true)) {
throw new \InvalidArgumentException('Invalid padding type. Expected one of (STR_PAD_LEFT, STR_PAD_RIGHT, STR_PAD_BOTH).');
}
$this->padType = $padType;
return $this;
}