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

Breadcrumb

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

class DoctrineAnnotation

Hierarchy

  • class \PHPStan\PhpDocParser\Ast\PhpDoc\Doctrine\DoctrineAnnotation implements \PHPStan\PhpDocParser\Ast\Node uses \PHPStan\PhpDocParser\Ast\NodeAttributes

Expanded class hierarchy of DoctrineAnnotation

2 files declare their use of DoctrineAnnotation
Printer.php in vendor/phpstan/phpdoc-parser/src/Printer/Printer.php
UnusedUsesSniff.php in vendor/slevomat/coding-standard/SlevomatCodingStandard/Sniffs/Namespaces/UnusedUsesSniff.php

File

vendor/phpstan/phpdoc-parser/src/Ast/PhpDoc/Doctrine/DoctrineAnnotation.php, line 9

Namespace

PHPStan\PhpDocParser\Ast\PhpDoc\Doctrine
View source
class DoctrineAnnotation implements Node {
    use NodeAttributes;
    
    /** @var string */
    public $name;
    
    /** @var list<DoctrineArgument> */
    public $arguments;
    
    /**
     * @param list<DoctrineArgument> $arguments
     */
    public function __construct(string $name, array $arguments) {
        $this->name = $name;
        $this->arguments = $arguments;
    }
    public function __toString() : string {
        $arguments = implode(', ', $this->arguments);
        return $this->name . '(' . $arguments . ')';
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title
DoctrineAnnotation::$arguments public property @var list&lt;DoctrineArgument&gt;
DoctrineAnnotation::$name public property @var string
DoctrineAnnotation::__construct public function *
DoctrineAnnotation::__toString public function Overrides Node::__toString
NodeAttributes::$attributes private property @var array&lt;string, mixed&gt;
NodeAttributes::getAttribute public function *
NodeAttributes::hasAttribute public function
NodeAttributes::setAttribute public function *

API Navigation

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