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

Breadcrumb

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

class SolverOperation

Abstract operation class.

@author Aleksandr Bezpiatov <aleksandr.bezpiatov@spryker.com>

Hierarchy

  • class \Composer\DependencyResolver\Operation\SolverOperation implements \Composer\DependencyResolver\Operation\OperationInterface

Expanded class hierarchy of SolverOperation

File

vendor/composer/composer/src/Composer/DependencyResolver/Operation/SolverOperation.php, line 20

Namespace

Composer\DependencyResolver\Operation
View source
abstract class SolverOperation implements OperationInterface {
    
    /**
     * @abstract must be redefined by extending classes
     */
    protected const TYPE = '';
    
    /**
     * Returns operation type.
     */
    public function getOperationType() : string {
        return static::TYPE;
    }
    
    /**
     * @inheritDoc
     */
    public function __toString() {
        return $this->show(false);
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title Overrides
OperationInterface::show public function Serializes the operation in a human readable format 5
SolverOperation::getOperationType public function Returns operation type. Overrides OperationInterface::getOperationType
SolverOperation::TYPE protected constant @abstract must be redefined by extending classes 5
SolverOperation::__toString public function @inheritDoc Overrides OperationInterface::__toString

API Navigation

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