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

checksums() 공개 메소드

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

Usage Example

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