<?

namespace Widgets\Yandex\Eccomerce;

/**
 * Description of Eccemerce
 *
 * @author Admin
 */
class Eccomerce extends \Widgets\Widget
{

    protected $transaction = [];
    protected $items = [];

    function setJsLinks()
    {
        // TODO: Implement setJsLinks() method.
    }

    function getJsLinks(): array
    {
        // TODO: Implement getJsLinks() method.
    }

    function getCssLinks(): array
    {
        // TODO: Implement getCssLinks() method.
    }

    function setCssLinks()
    {
        // TODO: Implement setCssLinks() method.
    }


    /**
     *
     * @param type $id
     * @param type $name
     * @param type $brand
     * @param type $category
     * @param type $price
     * @param type $quantity
     * @param type $sizes
     */
    function addItem($id, $name, $brand, $category, $price, $quantity = 1, $sizes)
    {

        $this->items[] = [
            "id" => $id,
            "name" => $name,
            "price" => $price,
            "brand" => $brand,
            "category" => $category,
            "variant" => $sizes,
            "quantity" => $quantity
        ];
    }

    function setTransaction($id)
    {

        $this->transaction = [
            'id' => $id
        ];

    }

}