5 * Contains \Drupal\drupalmoduleupgrader\Utility\Path\PathUtilityInterface.
8 namespace Drupal\drupalmoduleupgrader\Utility\Path;
10 use Doctrine\Common\Collections\Collection as CollectionInterface;
13 * Represents a route path.
15 interface PathUtilityInterface extends CollectionInterface {
18 * Constructs a path utility.
21 * The path to wrap, either as a string or an array.
23 * @throws \InvalidArgumentException
25 public function __construct($path);
28 * Returns a new path component wrapping a value.
33 * @return \Drupal\drupalmoduleupgrader\Utility\Path\PathComponentInterface
35 public static function getComponent($value);
38 * Returns if there are wildcards in the path.
42 public function hasWildcards();
45 * Returns a PathUtilityInterface for the parent path.
49 * @throws \LengthException if the path cannot have a parent (i.e.,
50 * the path only has one component).
52 public function getParent();
55 * Collapses the path into a string.
59 public function __toString();