public function addCategory(CategoryInterface $categories) { $this->categories[] = $categories; return $this; }