Skip to content
Code-Schnipsel Gruppen Projekte
StatusUnknown.php 929 B
Newer Older
  • Learn to ignore specific revisions
  • <?php
    
    /**
     * This file contains QUI\ERP\Order\ProcessingStatus\StatusUnknown
     */
    
    namespace QUI\ERP\Order\ProcessingStatus;
    
    use QUI;
    
    /**
     * Class Exception
     *
     * @package QUI\ERP\Order\ProcessingStatus
     */
    class StatusUnknown extends Status
    {
        /**
         * @var int
         */
    
    Henning Leutz's avatar
    Henning Leutz committed
        protected int $id = 0;
    
    Henning Leutz's avatar
    Henning Leutz committed
        protected mixed $color = '#999';
    
    Henning Leutz's avatar
    Henning Leutz committed
        protected bool $notification = false;
    
    
        /**
         * Status constructor
         */
        public function __construct()
        {
        }
    
        /**
         * Return the title
         *
    
    Henning Leutz's avatar
    Henning Leutz committed
         * @param null|QUI\Locale $Locale (optional) $Locale
    
         * @return string
         */
    
        public function getTitle(null | QUI\Locale $Locale = null): string
    
        {
            if (!($Locale instanceof QUI\Locale)) {
                $Locale = QUI::getLocale();
            }
    
            return $Locale->get('quiqqer/order', 'processing.status.unknown');
        }
    }