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

Breadcrumb

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

class Result

Same name in this branch
  1. 11.1.x core/modules/views/src/Plugin/views/area/Result.php \Drupal\views\Plugin\views\area\Result

@psalm-immutable

@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

Hierarchy

  • class \PHPUnit\TextUI\Command\Result

Expanded class hierarchy of Result

1 file declares its use of Result
Application.php in vendor/phpunit/phpunit/src/TextUI/Application.php
3 string references to 'Result'
views.area.schema.yml in core/modules/views/config/schema/views.area.schema.yml
core/modules/views/config/schema/views.area.schema.yml
views.view.who_s_online.yml in core/modules/user/config/optional/views.view.who_s_online.yml
core/modules/user/config/optional/views.view.who_s_online.yml
ViewsViewsHooks::viewsData in core/modules/views/src/Hook/ViewsViewsHooks.php
Implements hook_views_data().

File

vendor/phpunit/phpunit/src/TextUI/Command/Result.php, line 19

Namespace

PHPUnit\TextUI\Command
View source
final class Result {
    public const SUCCESS = 0;
    public const FAILURE = 1;
    public const EXCEPTION = 2;
    public const CRASH = 255;
    private readonly string $output;
    private readonly int $shellExitCode;
    public static function from(string $output = '', int $shellExitCode = self::SUCCESS) : self {
        return new self($output, $shellExitCode);
    }
    private function __construct(string $output, int $shellExitCode) {
        $this->output = $output;
        $this->shellExitCode = $shellExitCode;
    }
    public function output() : string {
        return $this->output;
    }
    public function shellExitCode() : int {
        return $this->shellExitCode;
    }

}

Members

Title Sort descending Modifiers Object type Summary
Result::$output private property
Result::$shellExitCode private property
Result::CRASH public constant
Result::EXCEPTION public constant
Result::FAILURE public constant
Result::from public static function
Result::output public function
Result::shellExitCode public function
Result::SUCCESS public constant
Result::__construct private function

API Navigation

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