# tablepress/3.4/libraries/vendor/PhpSpreadsheet/Worksheet/Table/TableDxfsStyle.php

TablePress – Tables in WordPress made easy, version 3.4. 171 lines.

- Page: https://pluginprobe.com/plugins/tablepress/3.4/code/libraries/vendor/PhpSpreadsheet/Worksheet/Table/TableDxfsStyle.php
- Raw: https://pluginprobe.com/plugins/tablepress/3.4/raw/libraries/vendor/PhpSpreadsheet/Worksheet/Table/TableDxfsStyle.php
- Modified: 2025-04-29T05:06:50+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/tablepress/3.4/code/libraries/vendor/PhpSpreadsheet/Worksheet/Table/TableDxfsStyle.php#L10-L20`.

```php
<?php

namespace TablePress\PhpOffice\PhpSpreadsheet\Worksheet\Table;

use TablePress\PhpOffice\PhpSpreadsheet\Style\Style;
use TablePress\PhpOffice\PhpSpreadsheet\Worksheet\Table;

class TableDxfsStyle
{
	/**
	 * Header row dxfs index.
	 */
	private ?int $headerRow = null;

	/**
	 * First row stripe dxfs index.
	 */
	private ?int $firstRowStripe = null;

	/**
	 * second row stripe dxfs index.
	 */
	private ?int $secondRowStripe = null;

	/**
	 * Header row Style.
	 */
	private ?Style $headerRowStyle = null;

	/**
	 * First row stripe Style.
	 */
	private ?Style $firstRowStripeStyle = null;

	/**
	 * Second row stripe Style.
	 */
	private ?Style $secondRowStripeStyle = null;

	/**
	 * Name of the style.
	 */
	private string $name;

	/**
	 * Create a new Table Style.
	 *
	 * @param string $name The name
	 */
	public function __construct(string $name)
	{
		$this->name = $name;
	}

	/**
	 * Get name.
	 */
	public function getName(): string
	{
		return $this->name;
	}

	/**
	 * Set header row dxfs index.
	 */
	public function setHeaderRow(int $row): self
	{
		$this->headerRow = $row;

		return $this;
	}

	/**
	 * Get header row dxfs index.
	 */
	public function getHeaderRow(): ?int
	{
		return $this->headerRow;
	}

	/**
	 * Set first row stripe dxfs index.
	 */
	public function setFirstRowStripe(int $row): self
	{
		$this->firstRowStripe = $row;

		return $this;
	}

	/**
	 * Get first row stripe dxfs index.
	 */
	public function getFirstRowStripe(): ?int
	{
		return $this->firstRowStripe;
	}

	/**
	 * Set second row stripe dxfs index.
	 */
	public function setSecondRowStripe(int $row): self
	{
		$this->secondRowStripe = $row;

		return $this;
	}

	/**
	 * Get second row stripe dxfs index.
	 */
	public function getSecondRowStripe(): ?int
	{
		return $this->secondRowStripe;
	}

	/**
	 * Set Header row Style.
	 */
	public function setHeaderRowStyle(Style $style): self
	{
		$this->headerRowStyle = $style;

		return $this;
	}

	/**
	 * Get Header row Style.
	 */
	public function getHeaderRowStyle(): ?Style
	{
		return $this->headerRowStyle;
	}

	/**
	 * Set first row stripe Style.
	 */
	public function setFirstRowStripeStyle(Style $style): self
	{
		$this->firstRowStripeStyle = $style;

		return $this;
	}

	/**
	 * Get first row stripe Style.
	 */
	public function getFirstRowStripeStyle(): ?Style
	{
		return $this->firstRowStripeStyle;
	}

	/**
	 * Set second row stripe Style.
	 */
	public function setSecondRowStripeStyle(Style $style): self
	{
		$this->secondRowStripeStyle = $style;

		return $this;
	}

	/**
	 * Get second row stripe Style.
	 */
	public function getSecondRowStripeStyle(): ?Style
	{
		return $this->secondRowStripeStyle;
	}
}

```
