Skip to content

Commit

Permalink
Deprecated MediaInterface::isThumbnail
Browse files Browse the repository at this point in the history
  • Loading branch information
azmeuk committed Dec 10, 2019
1 parent 5f193d3 commit f1242e7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/FeedIo/Feed/Item/Media.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,12 @@ public function setNodeName(string $nodeName) : MediaInterface
}

/**
* @deprecated
* @return bool
*/
public function isThumbnail() : bool
{
trigger_error('Method isThumbnail is deprecated and will be removed in feed-io 5.0', E_USER_DEPRECATED);
return $this->nodeName === 'media:thumbnail';
}

Expand Down

0 comments on commit f1242e7

Please sign in to comment.