EnumValue.php

Same filename in this branch
  1. 11.x core/tests/Drupal/Tests/Component/Serialization/EnumValue.php
Same filename and directory in other branches
  1. main core/modules/config/tests/config_enum_test/src/EnumValue.php
  2. main core/tests/Drupal/Tests/Component/Serialization/EnumValue.php

Namespace

Drupal\config_enum_test

File

core/modules/config/tests/config_enum_test/src/EnumValue.php

View source
<?php

declare (strict_types=1);
namespace Drupal\config_enum_test;


/**
 * Represents options for a boolean-like value.
 */
enum EnumValue
{
  case Yes;
  case No;
  case Maybe;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.