Fix Calc
This commit is contained in:
parent
9daf5e9e24
commit
a57786d835
File diff suppressed because one or more lines are too long
@ -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());
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user