public function addEntity($entity, array $overrides = []): RssFeedItem
    {
        return $this->items[] = RssFeedItem::fromEntity($entity, $overrides);
    }
public function addEntity($entity, array $overrides = []): RssFeedItem
    {
        return $this->items[] = RssFeedItem::fromEntity($entity, $overrides);
    }
public function addEntity ( $ entity , array $ overrides = [ ] ) : RssFeedItem { return $ this -> items [ ] = RssFeedItem :: fromEntity ( $ entity , $ overrides ) ; }
creates an item from an entity to the rss feed

Return value is the created item.

@param   object  $entity
@param   array   $overrides
@return  \stubbles\xml\rss\RssFeedItem
creates an item from an entity to the rss feed