public function Image()
    {
        $product = $this->FindStockItem();

        if ($product && method_exists($product, "SortedImages")) {
            return  $product->SortedImages()->first();
        } elseif ($product && method_exists($product, "Images")) {
            return $product->Images()->first();
        } elseif ($product && method_exists($product, "Image") && $product->Image()->exists()) {
            return $product->Image();
        }
    }
public function Image()
    {
        $product = $this->FindStockItem();

        if ($product && method_exists($product, "SortedImages")) {
            return  $product->SortedImages()->first();
        } elseif ($product && method_exists($product, "Images")) {
            return $product->Images()->first();
        } elseif ($product && method_exists($product, "Image") && $product->Image()->exists()) {
            return $product->Image();
        }
    }
public function Image ( ) { $ product = $ this -> FindStockItem ( ) ; if ( $ product && method_exists ( $ product , "SortedImages" ) ) { return $ product -> SortedImages ( ) -> first ( ) ; } elseif ( $ product && method_exists ( $ product , "Images" ) ) { return $ product -> Images ( ) -> first ( ) ; } elseif ( $ product && method_exists ( $ product , "Image" ) && $ product -> Image ( ) -> exists ( ) ) { return $ product -> Image ( ) ; } }
Get an image object associated with this line item.
By default this is retrieved from the base product.

@return Image | null
Get an image object associated with this line item . By default this is retrieved from the base product .