Imbo\Resource\Images\Query::page PHP 메소드

page() 공개 메소드

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

Usage Example

예제 #1
0
파일: QueryTest.php 프로젝트: ASP96/imbo
 /**
  * @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