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

Breadcrumb

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

class IgnoreAnnotation

Annotation that can be used to signal to the parser to ignore specific annotations during the parsing process.

@Annotation

Hierarchy

  • class \Doctrine\Common\Annotations\Annotation\IgnoreAnnotation

Expanded class hierarchy of IgnoreAnnotation

1 file declares its use of IgnoreAnnotation
AnnotationReader.php in vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationReader.php

File

vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/Annotation/IgnoreAnnotation.php, line 18

Namespace

Doctrine\Common\Annotations\Annotation
View source
final class IgnoreAnnotation {
    
    /** @phpstan-var list<string> */
    public $names;
    
    /**
     * @phpstan-param array{value: string|list<string>} $values
     *
     * @throws RuntimeException
     */
    public function __construct(array $values) {
        if (is_string($values['value'])) {
            $values['value'] = [
                $values['value'],
            ];
        }
        if (!is_array($values['value'])) {
            throw new RuntimeException(sprintf('@IgnoreAnnotation expects either a string name, or an array of strings, but got %s.', json_encode($values['value'])));
        }
        $this->names = $values['value'];
    }

}

Members

Title Sort descending Modifiers Object type Summary
IgnoreAnnotation::$names public property @phpstan-var list&lt;string&gt;
IgnoreAnnotation::__construct public function @phpstan-param array{value: string|list&lt;string&gt;} $values

API Navigation

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