src/Offer/Offer.php
protected function getMainImageId()
    {
        $mainImage = $this->images->getMain();
        return isset($mainImage) ? $mainImage->getMediaObjectId() : null;
    }
protected function getMainImageId()
    {
        $mainImage = $this->images->getMain();
        return isset($mainImage) ? $mainImage->getMediaObjectId() : null;
    }
protected function getMainImageId ( ) { $ mainImage = $ this -> images -> getMain ( ) ; return isset ( $ mainImage ) ? $ mainImage -> getMediaObjectId ( ) : null ; }
Get the id of the main image if one is selected for this offer.

@return UUID|null
Get the id of the main image if one is selected for this offer .