diff --git a/src/HelpScoutDocs/Models/Article.php b/src/HelpScoutDocs/Models/Article.php index a1fa717..17b586d 100644 --- a/src/HelpScoutDocs/Models/Article.php +++ b/src/HelpScoutDocs/Models/Article.php @@ -22,6 +22,11 @@ class Article extends ArticleRef */ private ?array $related = null; + /** + * @var null|array|string[] + */ + private ?array $keywords = null; + public function __construct(?stdClass $data = null) { if ($data) { @@ -31,6 +36,7 @@ public function __construct(?stdClass $data = null) $this->code = $data->code ?? null; $this->categories = $data->categories ?? null; $this->related = $data->related ?? null; + $this->keywords = $data->keywords ?? null; } } @@ -85,4 +91,20 @@ public function getText(): ?string { return $this->text; } + + /** + * @param array|string[] $keywords + */ + public function setKeywords(?array $keywords): void + { + $this->keywords = $keywords; + } + + /** + * @return array|string[]|null + */ + public function getKeywords(): ?array + { + return $this->keywords; + } }