<?php

namespace KupShop\GraphQLBundle\ApiPos\Types\Order;

use TheCodingMachine\GraphQLite\Annotations\Field;
use TheCodingMachine\GraphQLite\Annotations\Type;

/**
 * @Type()
 */
class PosOrderStatus
{
    private $id;
    private $code;
    private $text;

    public function __construct($id, $text, $code = null)
    {
        $this->id = $id;
        $this->code = $code;
        $this->text = $text;
    }

    /**
     * @Field()
     */
    public function getText(): string
    {
        return $this->text;
    }

    /**
     * @Field()
     */
    public function getId(): string
    {
        return $this->id;
    }

    /**
     * @Field()
     */
    public function getCode(): ?string
    {
        return $this->code;
    }
}
