Imbo\Resource\Images\Query::page PHP Method

page() public method

Set or get the page property
public page ( integer $page = null ) : integer | self
$page integer Give this a value to set the page property
return integer | self
    public function page($page = null)
    {
        if ($page === null) {
            return $this->page;
        }
        $this->page = (int) $page;
        return $this;
    }

Usage Example

Example #1
0
 /**
  * @covers Imbo\Resource\Images\Query::page
  */
 public function testPage()
 {
     $value = 2;
     $this->assertSame(1, $this->query->page());
     $this->assertSame($this->query, $this->query->page($value));
     $this->assertSame($value, $this->query->page());
 }
All Usage Examples Of Imbo\Resource\Images\Query::page