diff --git a/src/Article.php b/src/Article.php index 4b3c48d..f455844 100644 --- a/src/Article.php +++ b/src/Article.php @@ -78,4 +78,17 @@ class Article return $this->options; } + public function getOptionsAsArray() + { + $temp = array(); + /** @var Option\Type\Base $option */ + foreach ($this->options as $option) { + $temp[$option->getId()] = array( + 'name' => $option->getName(), + 'value' => $option->getValue(), + 'rawVaue' => $option->getRawValue() + ); + } + return $temp; + } } \ No newline at end of file