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

to() 공개 메소드

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

Usage Example

예제 #1
0
파일: QueryTest.php 프로젝트: ASP96/imbo
 /**
  * @covers Imbo\Resource\Images\Query::to
  */
 public function testTo()
 {
     $value = 123123123;
     $this->assertNull($this->query->to());
     $this->assertSame($this->query, $this->query->to($value));
     $this->assertSame($value, $this->query->to());
 }
All Usage Examples Of Imbo\Resource\Images\Query::to