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

Breadcrumb

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

function Enum_::implement

Implements one or more interfaces.

Parameters

Name|string ...$interfaces Names of interfaces to implement:

Return value

$this The builder instance (for fluid interface)

File

vendor/nikic/php-parser/lib/PhpParser/Builder/Enum_.php, line 57

Class

Enum_

Namespace

PhpParser\Builder

Code

public function implement(...$interfaces) {
    foreach ($interfaces as $interface) {
        $this->implements[] = BuilderHelpers::normalizeName($interface);
    }
    return $this;
}

API Navigation

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