src/Offer/Offer.php
public function removeImage(Image $image)
    {
        // Find the image based on UUID inside the internal state.
        // Use the image from the internal state.
        $existingImage = $this->images->findImageByUUID($image->getMediaObjectId());

        if ($existingImage) {
            $this->apply(
                $this->createImageRemovedEvent($existingImage)
            );
        }
    }
public function removeImage(Image $image)
    {
        // Find the image based on UUID inside the internal state.
        // Use the image from the internal state.
        $existingImage = $this->images->findImageByUUID($image->getMediaObjectId());

        if ($existingImage) {
            $this->apply(
                $this->createImageRemovedEvent($existingImage)
            );
        }
    }
public function removeImage ( Image $ image ) { // Find the image based on UUID inside the internal state. // Use the image from the internal state. $ existingImage = $ this -> images -> findImageByUUID ( $ image -> getMediaObjectId ( ) ) ; if ( $ existingImage ) { $ this -> apply ( $ this -> createImageRemovedEvent ( $ existingImage ) ) ; } }
Remove an image.

@param Image $image
Remove an image .