public function inCategories(array $categories): self
    {
        foreach ($categories as $category) {
            if (is_array($category)) {
                $this->inCategory($category['category'], $category['domain']);
            } else {
                $this->inCategory($category);
            }
        }

        return $this;
    }
public function inCategories(array $categories): self
    {
        foreach ($categories as $category) {
            if (is_array($category)) {
                $this->inCategory($category['category'], $category['domain']);
            } else {
                $this->inCategory($category);
            }
        }

        return $this;
    }
public function inCategories ( array $ categories ) : self { foreach ( $ categories as $ category ) { if ( is_array ( $ category ) ) { $ this -> inCategory ( $ category [ 'category' ] , $ category [ 'domain' ] ) ; } else { $ this -> inCategory ( $ category ) ; } } return $ this ; }
sets categories where the item is included into

Does not consider the domain of the category.

@param   string[]  $categories
@return  \stubbles\xml\rss\RssFeedItem
sets categories where the item is included into