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

Breadcrumb

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

function Rule2Literals::__toString

Formats a rule as a string of the format (Literal1|Literal2|...)

Overrides Rule::__toString

File

vendor/composer/composer/src/Composer/DependencyResolver/Rule2Literals.php, line 109

Class

Rule2Literals
@author Nils Adermann <naderman@naderman.de> @phpstan-import-type ReasonData from Rule

Namespace

Composer\DependencyResolver

Code

public function __toString() : string {
    $result = $this->isDisabled() ? 'disabled(' : '(';
    $result .= $this->literal1 . '|' . $this->literal2 . ')';
    return $result;
}

API Navigation

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