phpmyadmin/libraries/classes/Properties/Options/OptionsPropertyOneItem.php
Kamil Tekiela a67dd95705 Set return types in OptionsPropertyOneItem
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2023-02-21 23:50:59 +00:00

84 lines
1.5 KiB
PHP

<?php
/**
* Superclass for the single Property Item classes.
*/
declare(strict_types=1);
namespace PhpMyAdmin\Properties\Options;
/**
* Parents only single property items (not groups).
* Defines possible options and getters and setters for them.
*/
abstract class OptionsPropertyOneItem extends OptionsPropertyItem
{
private array $values = [];
/** @var string|string[] */
private string|array $doc = '';
private int $len = 0;
private int $size = 0;
/* ~~~~~~~~~~~~~~~~~~~~ Getters and Setters ~~~~~~~~~~~~~~~~~~~~ */
/**
* Gets the values
*/
public function getValues(): array
{
return $this->values;
}
/**
* Sets the values
*
* @param array $values values
*/
public function setValues(array $values): void
{
$this->values = $values;
}
/**
* Gets MySQL documentation pointer
*
* @return string|string[]
*/
public function getDoc(): array|string
{
return $this->doc;
}
/**
* Sets the doc
*
* @param string|string[] $doc MySQL documentation pointer
*/
public function setDoc(string|array $doc): void
{
$this->doc = $doc;
}
public function getLen(): int
{
return $this->len;
}
public function setLen(int $len): void
{
$this->len = $len;
}
public function getSize(): int
{
return $this->size;
}
public function setSize(int $size): void
{
$this->size = $size;
}
}