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

from() 공개 메소드

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

Usage Example

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