![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/app/code/Cnc/SerialNumber/Model/Source/SerialNumber/ |
<?php /** * Copyright (c) 2020 Kaliop Digital Commerce (https://digitalcommerce.kaliop.com) All Rights Reserved. * https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) * Krzysztof Majkowski <[email protected]> */ declare(strict_types=1); namespace Cnc\SerialNumber\Model\Source\SerialNumber; use Magento\Framework\Data\OptionSourceInterface; class Status implements OptionSourceInterface { const BLOCKED = 0; const AVAILABLE = 1; const RESERVED = 2; const SOLD = 3; const CANCELED = 4; /** * {@inheritdoc} */ public function toOptionArray(): array { return [ ['value' => self::BLOCKED, 'label' => __('Blocked')], ['value' => self::AVAILABLE, 'label' => __('Available')], ['value' => self::RESERVED, 'label' => __('Reserved')], ['value' => self::SOLD, 'label' => __('Sold')], ['value' => self::CANCELED, 'label' => __('Canceled')], ]; } }