BackedEnumValue.php

Same filename and directory in other branches
  1. main core/tests/Drupal/Tests/Component/Serialization/BackedEnumValue.php

Namespace

Drupal\Tests\Component\Serialization

File

core/tests/Drupal/Tests/Component/Serialization/BackedEnumValue.php

View source
<?php

declare (strict_types=1);
namespace Drupal\Tests\Component\Serialization;


/**
 * Represents options for a boolean-like value.
 */
enum BackedEnumValue : string
{
  case Yes = 'yes';
  case No = 'no';
  case Maybe = 'maybe';
}

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