Your IP : 216.73.216.52


Current Path : /proc/thread-self/root/var/www/surf/TYPO3/src/surf/Classes/Domain/Model/
Upload File :
Current File : //proc/thread-self/root/var/www/surf/TYPO3/src/surf/Classes/Domain/Model/OrderItem.php

<?php

declare(strict_types=1);

namespace Torresani\Surf\Domain\Model;


/**
 * This file is part of the "Surf" Extension for TYPO3 CMS.
 *
 * For the full copyright and license information, please read the
 * LICENSE.txt file that was distributed with this source code.
 *
 * (c) 2023 Roberto Torresani <roberto@torresani.eu>
 */

/**
 * OrderItem
 */
class OrderItem extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
{

    /**
     * code
     *
     * @var string
     */
    protected $code = '';

    /**
     * name
     *
     * @var string
     */
    protected $name = '';

    /**
     * quantity
     *
     * @var int
     */
    protected $quantity = 0;

    /**
     * status
     *
     * @var int
     */
    protected $status = 0;

    /**
     * vendor
     *
     * @var \Torresani\Surf\Domain\Model\Vendor
     */
    protected $vendor = null;

    /**
     * Returns the code
     *
     * @return string
     */
    public function getCode()
    {
        return $this->code;
    }

    /**
     * Sets the code
     *
     * @param string $code
     * @return void
     */
    public function setCode(string $code)
    {
        $this->code = $code;
    }

    /**
     * Returns the name
     *
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Sets the name
     *
     * @param string $name
     * @return void
     */
    public function setName(string $name)
    {
        $this->name = $name;
    }

    /**
     * Returns the quantity
     *
     * @return int
     */
    public function getQuantity()
    {
        return $this->quantity;
    }

    /**
     * Sets the quantity
     *
     * @param int $quantity
     * @return void
     */
    public function setQuantity(int $quantity)
    {
        $this->quantity = $quantity;
    }

    /**
     * Returns the vendor
     *
     * @return \Torresani\Surf\Domain\Model\Vendor
     */
    public function getVendor()
    {
        return $this->vendor;
    }

    /**
     * Sets the vendor
     *
     * @param \Torresani\Surf\Domain\Model\Vendor $vendor
     * @return void
     */
    public function setVendor(\Torresani\Surf\Domain\Model\Vendor $vendor)
    {
        $this->vendor = $vendor;
    }

    /**
     * Returns the status
     *
     * @return int
     */
    public function getStatus()
    {
        return $this->status;
    }

    /**
     * Sets the status
     *
     * @param int $status
     * @return void
     */
    public function setStatus(int $status)
    {
        $this->status = $status;
    }
}