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

imageIdentifiers() public method

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

Usage Example

Exemplo n.º 1
0
 /**
  * @covers Imbo\Resource\Images\Query::imageIdentifiers
  */
 public function testImageIdentifiers()
 {
     $value = array('id1', 'id2');
     $this->assertSame(array(), $this->query->imageIdentifiers());
     $this->assertSame($this->query, $this->query->imageIdentifiers($value));
     $this->assertSame($value, $this->query->imageIdentifiers());
 }
All Usage Examples Of Imbo\Resource\Images\Query::imageIdentifiers