<?php

namespace App\Classes\Modules\PerfexCRM\DataTransferObjects;

use Illuminate\Http\Request;
use App\Classes\General\Interfaces\DataTransferObject;

class InvoiceSingleItemPerfexCRMObject implements DataTransferObject
{

    /** @var string */
    public $description;

    /** @var string */
    public $longDescription;

    /** @var float */
    public $qty;

    /** @var float */
    public $rate;

    /** @var int */
    public $order;

    /** @var string */
    public $unit;

    public function __construct(string $description, string $longDescription, float $qty, float $rate, int $order, string $unit)
    {
        $this->description = $description;
        $this->longDescription = $longDescription;
        $this->qty = $qty;
        $this->rate = $rate;
        $this->order = $order;
        $this->unit = $unit;
    }

    /**
     * @return string
     */
    public function getDescription(): string
    {
        return $this->description;
    }

    /**
     * @return string
     */
    public function getLongDescription(): string
    {
        return $this->longDescription;
    }

    /**
     * @return float
     */
    public function getQty(): float
    {
        return $this->qty;
    }

    /**
     * @return float
     */
    public function getRate(): float
    {
        return $this->rate;
    }

    /**
     * @return int
     */
    public function getOrder(): int
    {
        return $this->order;
    }

    /**
     * @return string
     */
    public function getUnit(): string
    {
        return $this->unit;
    }
}
