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

Breadcrumb

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

class SuccessfulSchemaDetectionResult

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

@internal This class is not covered by the backward compatibility promise for PHPUnit

@psalm-immutable

Hierarchy

  • class \PHPUnit\TextUI\XmlConfiguration\SchemaDetectionResult
    • class \PHPUnit\TextUI\XmlConfiguration\SuccessfulSchemaDetectionResult extends \PHPUnit\TextUI\XmlConfiguration\SchemaDetectionResult

Expanded class hierarchy of SuccessfulSchemaDetectionResult

File

vendor/phpunit/phpunit/src/TextUI/Configuration/Xml/SchemaDetector/SuccessfulSchemaDetectionResult.php, line 19

Namespace

PHPUnit\TextUI\XmlConfiguration
View source
final class SuccessfulSchemaDetectionResult extends SchemaDetectionResult {
    
    /**
     * @psalm-var non-empty-string
     */
    private readonly string $version;
    
    /**
     * @psalm-param non-empty-string $version
     */
    public function __construct(string $version) {
        $this->version = $version;
    }
    
    /**
     * @psalm-assert-if-true SuccessfulSchemaDetectionResult $this
     */
    public function detected() : bool {
        return true;
    }
    
    /**
     * @psalm-return non-empty-string
     */
    public function version() : string {
        return $this->version;
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title
SuccessfulSchemaDetectionResult::$version private property @psalm-var non-empty-string
SuccessfulSchemaDetectionResult::detected public function @psalm-assert-if-true SuccessfulSchemaDetectionResult $this Overrides SchemaDetectionResult::detected
SuccessfulSchemaDetectionResult::version public function @psalm-return non-empty-string Overrides SchemaDetectionResult::version
SuccessfulSchemaDetectionResult::__construct public function @psalm-param non-empty-string $version

API Navigation

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