* @since 3.0.0 * @package Combodo\iTop\Application\UI\Base\Component\Pill */ class Pill extends UIContentBlock { /** @var string */ protected $sColor; public function __construct(string $sColor) { parent::__construct(null, ["ibo-pill ibo-pill-is-{$sColor}"]); $this->SetColor($sColor); } /** * @return string */ public function GetColor(): ?string { return $this->sColor; } /** * @param string $sColor * * @return Pill */ public function SetColor(string $sColor): Pill { $this->sColor = $sColor; return $this; } }