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

Breadcrumb

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

class Ticket

@psalm-immutable

@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit

Hierarchy

  • class \PHPUnit\Framework\Attributes\Ticket

Expanded class hierarchy of Ticket

1 file declares its use of Ticket
AttributeParser.php in vendor/phpunit/phpunit/src/Metadata/Parser/AttributeParser.php
2 string references to 'Ticket'
AnnotationParser::forClass in vendor/phpunit/phpunit/src/Metadata/Parser/AnnotationParser.php
@psalm-param class-string $className
AnnotationParser::forMethod in vendor/phpunit/phpunit/src/Metadata/Parser/AnnotationParser.php
@psalm-param class-string $className @psalm-param non-empty-string $methodName

File

vendor/phpunit/phpunit/src/Framework/Attributes/Ticket.php, line 19

Namespace

PHPUnit\Framework\Attributes
View source
final class Ticket {
    
    /**
     * @psalm-var non-empty-string
     */
    private readonly string $text;
    
    /**
     * @psalm-param non-empty-string $text
     */
    public function __construct(string $text) {
        $this->text = $text;
    }
    
    /**
     * @psalm-return non-empty-string
     */
    public function text() : string {
        return $this->text;
    }

}

Members

Title Sort descending Modifiers Object type Summary
Ticket::$text private property @psalm-var non-empty-string
Ticket::text public function @psalm-return non-empty-string
Ticket::__construct public function @psalm-param non-empty-string $text
RSS feed
Powered by Drupal