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

Breadcrumb

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

class Method

Same name in this branch
  1. 11.1.x vendor/nikic/php-parser/lib/PhpParser/Node/Scalar/MagicConst/Method.php \PhpParser\Node\Scalar\MagicConst\Method
  2. 11.1.x vendor/nikic/php-parser/lib/PhpParser/Builder/Method.php \PhpParser\Builder\Method
  3. 11.1.x vendor/google/protobuf/src/Google/Protobuf/Method.php \Google\Protobuf\Method
  4. 11.1.x vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Method.php \phpDocumentor\Reflection\DocBlock\Tags\Method

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

Hierarchy

  • class \SebastianBergmann\CodeCoverage\Report\Xml\Method

Expanded class hierarchy of Method

26 string references to 'Method'
Alias::getSubNodeNames in vendor/nikic/php-parser/lib/PhpParser/Node/Stmt/TraitUseAdaptation/Alias.php
AnnotationParser::forMethod in vendor/phpunit/phpunit/src/Metadata/Parser/AnnotationParser.php
@psalm-param class-string $className @psalm-param non-empty-string $methodName
AttributeAutoconfigurationPass::process in vendor/symfony/dependency-injection/Compiler/AttributeAutoconfigurationPass.php
You can modify the container here before it is dumped to PHP code.
ClassTagRetriever::getTagList in vendor/phpspec/prophecy/src/Prophecy/PhpDocumentor/ClassTagRetriever.php
Clover::process in vendor/phpunit/php-code-coverage/src/Report/Clover.php

... See full list

File

vendor/phpunit/php-code-coverage/src/Report/Xml/Method.php, line 17

Namespace

SebastianBergmann\CodeCoverage\Report\Xml
View source
final class Method {
    private readonly DOMElement $contextNode;
    public function __construct(DOMElement $context, string $name) {
        $this->contextNode = $context;
        $this->setName($name);
    }
    public function setSignature(string $signature) : void {
        $this->contextNode
            ->setAttribute('signature', $signature);
    }
    public function setLines(string $start, ?string $end = null) : void {
        $this->contextNode
            ->setAttribute('start', $start);
        if ($end !== null) {
            $this->contextNode
                ->setAttribute('end', $end);
        }
    }
    public function setTotals(string $executable, string $executed, string $coverage) : void {
        $this->contextNode
            ->setAttribute('executable', $executable);
        $this->contextNode
            ->setAttribute('executed', $executed);
        $this->contextNode
            ->setAttribute('coverage', $coverage);
    }
    public function setCrap(string $crap) : void {
        $this->contextNode
            ->setAttribute('crap', $crap);
    }
    private function setName(string $name) : void {
        $this->contextNode
            ->setAttribute('name', $name);
    }

}

Members

Title Sort descending Modifiers Object type Summary
Method::$contextNode private property
Method::setCrap public function
Method::setLines public function
Method::setName private function
Method::setSignature public function
Method::setTotals public function
Method::__construct public function

API Navigation

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