Artesaos\SEOTools\SEOMeta::getPrev PHP Method

getPrev() public method

Get the prev URL.
public getPrev ( ) : string
return string
    public function getPrev()
    {
        return $this->prev;
    }

Usage Example

Example #1
0
 public function test_set_prev()
 {
     $fullHeader = "<title>It's Over 9000!</title>";
     $fullHeader .= "<meta name=\"description\" content=\"For those who helped create the Genki Dama\">";
     $fullHeader .= "<link rel=\"prev\" href=\"http://domain.com\"/>";
     $prev = 'http://domain.com';
     $this->seoMeta->setPrev($prev);
     $this->setRightAssertion($fullHeader);
     $this->assertEquals($prev, $this->seoMeta->getPrev());
 }