Eccube\Entity\Product::addProductImage PHP Method

addProductImage() public method

Add ProductImage
public addProductImage ( Eccube\Entity\ProductImage $productImage ) : Product
$productImage Eccube\Entity\ProductImage
return Product
    public function addProductImage(\Eccube\Entity\ProductImage $productImage)
    {
        $this->ProductImage[] = $productImage;
        return $this;
    }

Usage Example

 /**
  * {@inheritDoc}
  */
 public function addProductImage(\Eccube\Entity\ProductImage $productImage)
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'addProductImage', array($productImage));
     return parent::addProductImage($productImage);
 }