This commit is contained in:
Thomas Peterson 2025-02-13 10:38:23 +01:00
parent 9daf5e9e24
commit a57786d835
4 changed files with 15 additions and 7 deletions

File diff suppressed because one or more lines are too long

View File

@ -107,6 +107,8 @@ class Select extends Base
}
if($system) {
$this->element->setColorSystem($colorSystem);
foreach ($system->getAllColors() as $color) {
$optColor = new \PSC\Library\Calc\Option\Type\Select\ColorOpt();
$optColor->setId($color->getName());

View File

@ -7,6 +7,8 @@ use PSC\Library\Calc\Tests\Mock\Paper;
class ColorDBSelect extends Select
{
private string $colorSystem = "";
public function getSelectedOption()
{
/** @var Opt $opt */
@ -15,4 +17,14 @@ class ColorDBSelect extends Select
}
}
public function getColorSystem(): string
{
return $this->colorSystem;
}
public function setColorSystem(string $colorSystem): void
{
$this->colorSystem = $colorSystem;
}
}

View File

@ -52,17 +52,11 @@ class Select extends Base
return parent::getValue(); // TODO: Change the autogenerated stub
}
/**
* @return String
*/
public function getMode()
{
return $this->mode;
}
/**
* @param String $mode
*/
public function setMode($mode)
{
$this->mode = $mode;