SampleCustomEnum.php 513 B

123456789101112131415161718192021222324252627282930
  1. <?php declare(strict_types=1);
  2. /**
  3. * This file is part of toolkit/stdlib.
  4. *
  5. * @author https://github.com/inhere
  6. * @link https://github.com/php-toolkit/stdlib
  7. * @license MIT
  8. */
  9. namespace Toolkit\StdlibTest\Cases;
  10. use Toolkit\Stdlib\Std\BaseEnum;
  11. /**
  12. * class SimpleEnum
  13. *
  14. * @author inhere
  15. */
  16. class SampleCustomEnum extends BaseEnum
  17. {
  18. public const ADD = [1, 'add'];
  19. public const VIEW = [2, 'view'];
  20. public const EDIT = [3, 'edit'];
  21. public int $code;
  22. public string $msg;
  23. }