Set videoGallery

@param \Amulen\MediaBundle\Entity\Gallery $videoGallery
@return Product
493341
public function setVideoGallery(\Amulen\MediaBundle\Entity\Gallery $videoGallery = null)
    {
        $this->videoGallery = $videoGallery;

        return $this;
    }
262411
public function setMedia(\Amulen\MediaBundle\Entity\Media $media = null)
    {
        $this->media = $media;

        return $this;
    }
648393
public function removeitemAction(Product $product, Request $request, GalleryItem $entity)
    {
        $em = $this->getDoctrine()->getManager();

        $galleryItem = $em->getRepository('AmulenMediaBundle:GalleryItem')->find($entity->getId());

        $gallery = $galleryItem->getGallery();

        $em->remove($galleryItem);
        $em->flush();
        $i = 0;
        $galleryItems = $em->getRepository('AmulenMediaBundle:GalleryItem')->findBy(array("gallery" => $product->getMediaGallery()), array("position" => "ASC"));
        foreach ($galleryItems as $item) {
            $item->setPosition($i);
            $i++;
        }
        $em->flush();

        return $this->redirect($this->generateUrl('admin_product_show', array('id' => $product->getId())));
    }
275325
public function setViewCount($viewCount)
    {
        self::writeFullTag(
            $viewCount,
            'view_count',
            true,
            'video:view_count',
            $this->validator,
            'validateViewCount',
            $this->exception,
            'Provided view count value is not a valid.'
        );

        return $this;
    }
797695
public function setItems($items)
    {
        foreach ($items as $item) {
            $item->setGallery($this);
        }
        $this->items = $items;

        return $this;
    }
1164856
public function storeTemporaryVideo (Video $video)
    {
        return $this
            ->storeVideo(false, $video)
            ->withExpiresDate(new \DateTime('@' . (time() + 172800))); // @todo: change to use the JSON's created_at property.
    }
1041604
public function setEntity($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\VideoIntelligence\V1\Entity::class);
        $this->entity = $var;

        return $this;
    }
1182754
public function setDealerProduct(ChildDealerProduct $v = null)
    {
        if ($v === null) {
            $this->setId(NULL);
        } else {
            $this->setId($v->getId());
        }

        $this->aDealerProduct = $v;

        // Add binding for other direction of this n:n relationship.
        // If this object has already been added to the ChildDealerProduct object, it will not be re-added.
        if ($v !== null) {
            $v->addDealerProductVersion($this);
        }


        return $this;
    }
742858
public function setProductOrder(\Amulen\ShopBundle\Entity\ProductOrder $productOrder = null)
    {
        $this->productOrder = $productOrder;

        return $this;
    }
1059259
public function setProductSet($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Vision\V1\ProductSet::class);
        $this->product_set = $var;

        return $this;
    }
627137
public function withVideos(array $videos)
    {
        Assertion::allIsInstanceOf($videos, VideoInterface::class);

        $instance = clone $this;

        $instance->videos = $videos;

        return $instance;
    }
630295
public function withVideo($videoPath, $data = [], $endpoint = 'me/videos')
    {
        $this->video = new video($videoPath, $endpoint);

        if (isset($data['title'])) {
            $this->video->setTitle($data['title']);
        }

        if (isset($data['description'])) {
            $this->video->setDescription($data['description']);
        }

        return $this;
    }
32162
public function getVideo($videoIdentifier)
    {
        if ($this->apiVersionIsGreaterThanV3() && !is_numeric($videoIdentifier)) {
            throw new InvalidIdentifierException('video');
        }

        return $this->get(sprintf('videos/%s', $videoIdentifier));
    }
34475
public function setDuration($duration)
    {
        if ($duration < 0 || $duration > 28800) {
            throw new Exception\GoogleVideoUrlException(
                sprintf(
                    'The parameter %s must be a valid duration.see http://support.google.com/webmasters/bin/answer.py?hl=en&answer=80472#4',
                    $duration
                )
            );
        }

        $this->duration = $duration;

        return $this;
    }
1342210
public function setRating($rating)
    {
        self::writeFullTag(
            $rating,
            'rating',
            true,
            'video:rating',
            $this->validator,
            'validateRating',
            $this->exception,
            'Provided rating value is not a valid.'
        );

        return $this;
    }
938056
public function getVideoByUrl(string $videoUrl): Video
	{
		$url = new Nette\Http\Url($videoUrl);

		if (stripos($url->host, 'youtu.be') !== false) {
			return $this->getVideo(trim($url->getPath(), '/'));
		}

		$videoId = $url->getQueryParameter('v');
		if (stripos($url->host, 'youtube.com') === false || $videoId === null) {
			throw new Nette\InvalidArgumentException('videoUrl must be valid youtube url.');
		}

		return $this->getVideo($videoId);
	}
1286719
public function setProvider($v)
    {
        if ($v !== null) {
            $v = (string) $v;
        }

        if ($this->provider !== $v) {
            $this->provider = $v;
            $this->modifiedColumns[VideoTableMap::COL_PROVIDER] = true;
        }

        return $this;
    }