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

from() public method

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

Usage Example

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