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

to() public method

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

Usage Example

Example #1
0
 /**
  * @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