Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. EnumCase.php

function EnumCase::setDocComment

Sets doc comment for the constant.

Parameters

PhpParser\Comment\Doc|string $docComment Doc comment to set:

Return value

$this The builder instance (for fluid interface)

File

vendor/nikic/php-parser/lib/PhpParser/Builder/EnumCase.php, line 52

Class

EnumCase

Namespace

PhpParser\Builder

Code

public function setDocComment($docComment) {
    $this->attributes = [
        'comments' => [
            BuilderHelpers::normalizeDocComment($docComment),
        ],
    ];
    return $this;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal