# sequra/4.1.0/src/Dto/class-table-index-column.php

seQura, version 4.1.0. 40 lines.

- Page: https://pluginprobe.com/plugins/sequra/4.1.0/code/src/Dto/class-table-index-column.php
- Raw: https://pluginprobe.com/plugins/sequra/4.1.0/raw/src/Dto/class-table-index-column.php
- Modified: 2025-07-21T08:16:44+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/sequra/4.1.0/code/src/Dto/class-table-index-column.php#L10-L20`.

```php
<?php
/**
 * Table Index Column.
 *
 * @package    SeQura/WC/Dto
 */

namespace SeQura\WC\Dto;

/**
 * Table Index Column.
 */
class Table_Index_Column extends Dto {

	/**
	 * The name of the column to be indexed.
	 * 
	 * @var string
	 */
	public $name;

	/**
	 * The character limit for the column if applicable.
	 * 
	 * @var null|int
	 */
	public $char_limit;

	/**
	 * Constructor
	 * 
	 * @param string $name The name of the column.
	 * @param int|null $char_limit The character limit for the column. Set to null if not applicable.
	 */
	public function __construct( string $name, $char_limit = null ) {
		$this->name       = $name;
		$this->char_limit = ! is_null( $char_limit ) && is_int( $char_limit ) ? $char_limit : null;
	}
}

```
