Imbo\Model\Images::setImages PHP Method

setImages() public method

Set the array of images
public setImages ( array $images ) : Images
$images array An array of Image models
return Images
    public function setImages(array $images)
    {
        $this->images = $images;
        return $this;
    }

Usage Example

Exemplo n.º 1
0
 /**
  * @covers Imbo\Model\Images::getCount
  */
 public function testCanCountImages()
 {
     $this->assertSame(0, $this->model->getCount());
     $images = array($this->getMock('Imbo\\Model\\Image'), $this->getMock('Imbo\\Model\\Image'), $this->getMock('Imbo\\Model\\Image'));
     $this->model->setImages($images);
     $this->assertSame(3, $this->model->getCount());
 }
All Usage Examples Of Imbo\Model\Images::setImages