HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/centrum8a/centrum8a.com/app/KommaApp/Shop/Products/Product/ProductInterface.php
<?php

namespace App\KommaApp\Shop\Products\Product;

use App\KommaApp\Shop\Discounts\DiscountableInterface;
use App\KommaApp\Shop\Discounts\Discount;
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Database\Eloquent\Relations\MorphToMany;


/**
 * Represents a basic product that a user can put in a cart
 *
 * Class Product
 * @property int id
 * @property int active
 * @property string title
 * @property float price
 * @property string stock_keeping_unit
 * @package App
 */
interface ProductInterface
{
    public function groups();

    /**
     * Get the images from the current product
     *
     * @return \Illuminate\Database\Eloquent\Relations\hasMany
     */
    public function images();

    /**
     * We belong to many categories
     *
     * @return MorphToMany
     */
    public function categories(): MorphToMany;

    /**
     * We belong to many sites
     *
     * @return BelongsToMany
     */
    public function sites(): BelongsToMany;

    public function translations(): HasMany;

    public function getName(): string;

    /**
     * Returns the price in cents
     *
     * @return float
     */
    public function getTotal():float;
}