You are here

PathComponentBase.php in Drupal 7 to 8/9 Module Upgrader 8

File

src/Utility/Path/PathComponentBase.php
View source
<?php

namespace Drupal\drupalmoduleupgrader\Utility\Path;


/**
 * Represents a single component in a route path.
 */
abstract class PathComponentBase implements PathComponentInterface {

  /**
   * @var string
   */
  protected $value;

  /**
   * {@inheritdoc}
   */
  public function __construct($value) {
    $this->value = $value;
  }

  /**
   * {@inheritdoc}
   */
  public function __toString() {
    return $this->value;
  }

}

Classes

Namesort descending Description
PathComponentBase Represents a single component in a route path.