Webmozart\Console\UI\Style\TableStyle::setHeaderCellStyle PHP Method

setHeaderCellStyle() public method

Sets the style of the header cells.
public setHeaderCellStyle ( Style $style = null ) : static
$style Webmozart\Console\Api\Formatter\Style The header cell style.
return static The current instance.
    public function setHeaderCellStyle(Style $style = null)
    {
        $this->headerCellStyle = $style;
        return $this;
    }

Usage Example

コード例 #1
0
ファイル: PuliTableStyle.php プロジェクト: msojda/cli
 /**
  * A borderless style.
  *
  * @return TableStyle The style.
  */
 public static function borderless()
 {
     if (!self::$borderless) {
         $borderStyle = BorderStyle::none();
         $borderStyle->setLineVCChar('  ');
         self::$borderless = new static();
         self::$borderless->setBorderStyle($borderStyle);
         self::$borderless->setHeaderCellStyle(Style::noTag()->bold());
     }
     return clone self::$borderless;
 }