PHP Classes

File: tests/Integration/DTO/ColorScalarEnum.php

Recommend this page to a friend!
  Classes of Andrey Iatsenko   PHP Plain Object with Class Variables Set from Array Values   tests/Integration/DTO/ColorScalarEnum.php   Download  
File: tests/Integration/DTO/ColorScalarEnum.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: PHP Plain Object with Class Variables Set from Array Values
Initialize data objects from arrays of values
Author: By
Last change:
Date: 11 months ago
Size: 171 bytes
 

Contents

Class file image Download
<?php

namespace Tests\Integration\DTO;

/**
 * Class ColorScalarEnum
 */
enum ColorScalarEnum: string
{
    case
Red = "R";
    case
Black = "B";
    case
White = "W";
}