Pop\Feed\Reader::adapter PHP Method

adapter() public method

Method to get the adapter object
public adapter ( ) : AbstractFormat
return Pop\Feed\Format\AbstractFormat
    public function adapter()
    {
        return $this->adapter;
    }

Usage Example

Esempio n. 1
0
 public function testRenderNoContentException()
 {
     $this->setExpectedException('Pop\\Feed\\Exception');
     $feed = new Feed\Reader(new Feed\Format\Rss\Vimeo('http://vimeo.com/tag:mostviewed/rss', 4));
     unset($feed->adapter()->items);
     $code = $feed->render(true);
 }