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

originalChecksums() public method

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

Usage Example

Esempio n. 1
0
 /**
  * @covers Imbo\Resource\Images\Query::originalChecksums
  */
 public function testOriginalChecksums()
 {
     $value = array('sum1', 'sum2');
     $this->assertSame(array(), $this->query->originalChecksums());
     $this->assertSame($this->query, $this->query->originalChecksums($value));
     $this->assertSame($value, $this->query->originalChecksums());
 }
All Usage Examples Of Imbo\Resource\Images\Query::originalChecksums