File: D:/HostingSpaces/SBogers10/komma.pro/app/KommaApp/Kms/Core/Attributes/Models/SelectOption.php
<?php
namespace App\KommaApp\Kms\Core\Attributes\Models;
/**
* Class SelectOptionModel
* @package App\KommaApp\Kms\Core\Attributes\Models
*
* Represents a selectable option for a Select attribute
*/
class SelectOption implements SelectOptionInterface
{
/**
* @var $value
*/
private $value;
/**
* @var string $content
*/
private $content;
/**
* @var string $htmlContent
*/
private $htmlContent;
/**
* SelectOptionModel constructor.
*/
public function __construct()
{
$this->value = null;
$this->content = '';
$this->htmlContent = '';
}
/**
* @param string $content
* @return SelectOptionInterface
*/
public function setContent(string $content): SelectOptionInterface
{
$this->content = $content;
return $this;
}
/**
* @return string
*/
public function getContent(): string
{
return $this->content;
}
/**
* @param string $content
* @return SelectOptionInterface
*/
public function setHtmlContent(string $content): SelectOptionInterface
{
$this->htmlContent = $content;
return $this;
}
/**
* @return string
*/
public function getHtmlContent(): string
{
return $this->htmlContent;
}
/**
* @param $value
* @return SelectOptionInterface
*/
public function setValue($value): SelectOptionInterface
{
$this->value = $value;
return $this;
}
/**
* Returns the value
* @return mixed
*/
public function getValue()
{
return $this->value;
}
}