diff --git a/src/models/ColourSwatches.php b/src/models/ColourSwatches.php index 9999d62..dc8c30a 100644 --- a/src/models/ColourSwatches.php +++ b/src/models/ColourSwatches.php @@ -8,6 +8,9 @@ class ColourSwatches * @var string */ + public $label = ''; + public $color = ''; + public function __construct($value) { if($this->validateJson($value)){ @@ -38,4 +41,19 @@ public function validateJson($value) return $json && $value != $json; } + public function __toString() + { + return $this->label; + } + + public function colors() + { + return $this->color; + } + + public function labels() + { + return $this->label; + } + }