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

Breadcrumb

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

function Precedence::__construct

Constructs a trait use precedence adaptation node.

Parameters

Node\Name $trait Trait name:

string|Node\Identifier $method Method name:

Node\Name[] $insteadof Overwritten traits:

array<string, mixed> $attributes Additional attributes:

File

vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/TraitUseAdaptation/Precedence.php, line 19

Class

Precedence

Namespace

PhpParser\Node\Stmt\TraitUseAdaptation

Code

public function __construct(Node\Name $trait, $method, array $insteadof, array $attributes = []) {
    $this->attributes = $attributes;
    $this->trait = $trait;
    $this->method = \is_string($method) ? new Node\Identifier($method) : $method;
    $this->insteadof = $insteadof;
}

API Navigation

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