Further modules included.
[yaffs-website] / web / modules / contrib / drupalmoduleupgrader / src / Utility / Path / PathComponentBase.php
diff --git a/web/modules/contrib/drupalmoduleupgrader/src/Utility/Path/PathComponentBase.php b/web/modules/contrib/drupalmoduleupgrader/src/Utility/Path/PathComponentBase.php
new file mode 100644 (file)
index 0000000..a286867
--- /dev/null
@@ -0,0 +1,34 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\drupalmoduleupgrader\Utility\Path\PathComponentBase.
+ */
+
+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;
+  }
+
+}