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

Breadcrumb

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

function AbstractNode::__construct

2 calls to AbstractNode::__construct()
File::__construct in vendor/phpunit/php-code-coverage/src/Node/File.php
@psalm-param array<int, ?list<non-empty-string>> $lineCoverageData @psalm-param LinesOfCodeType $linesOfCode @psalm-param array<string, CodeUnitClassType> $classes @psalm-param array<string, CodeUnitTraitType>…
File::__construct in vendor/phpunit/php-code-coverage/src/Node/File.php
@psalm-param array<int, ?list<non-empty-string>> $lineCoverageData @psalm-param LinesOfCodeType $linesOfCode @psalm-param array<string, CodeUnitClassType> $classes @psalm-param array<string, CodeUnitTraitType>…
1 method overrides AbstractNode::__construct()
File::__construct in vendor/phpunit/php-code-coverage/src/Node/File.php
@psalm-param array<int, ?list<non-empty-string>> $lineCoverageData @psalm-param LinesOfCodeType $linesOfCode @psalm-param array<string, CodeUnitClassType> $classes @psalm-param array<string, CodeUnitTraitType>…

File

vendor/phpunit/php-code-coverage/src/Node/AbstractNode.php, line 36

Class

AbstractNode
@internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage

Namespace

SebastianBergmann\CodeCoverage\Node

Code

public function __construct(string $name, ?self $parent = null) {
    if (str_ends_with($name, DIRECTORY_SEPARATOR)) {
        $name = substr($name, 0, -1);
    }
    $this->name = $name;
    $this->parent = $parent;
    $this->processId();
    $this->processPath();
}

API Navigation

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