Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bareos/bareos-webui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/zendframework/zend-mvc/src/Router/Http/RouteMatch.php')
-rw-r--r--vendor/zendframework/zend-mvc/src/Router/Http/RouteMatch.php82
1 files changed, 0 insertions, 82 deletions
diff --git a/vendor/zendframework/zend-mvc/src/Router/Http/RouteMatch.php b/vendor/zendframework/zend-mvc/src/Router/Http/RouteMatch.php
deleted file mode 100644
index f1864f2..0000000
--- a/vendor/zendframework/zend-mvc/src/Router/Http/RouteMatch.php
+++ /dev/null
@@ -1,82 +0,0 @@
-<?php
-/**
- * Zend Framework (http://framework.zend.com/)
- *
- * @link http://github.com/zendframework/zf2 for the canonical source repository
- * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
- * @license http://framework.zend.com/license/new-bsd New BSD License
- */
-
-namespace Zend\Mvc\Router\Http;
-
-use Zend\Mvc\Router\RouteMatch as BaseRouteMatch;
-
-/**
- * Part route match.
- */
-class RouteMatch extends BaseRouteMatch
-{
- /**
- * Length of the matched path.
- *
- * @var int
- */
- protected $length;
-
- /**
- * Create a part RouteMatch with given parameters and length.
- *
- * @param array $params
- * @param int $length
- */
- public function __construct(array $params, $length = 0)
- {
- parent::__construct($params);
-
- $this->length = $length;
- }
-
- /**
- * setMatchedRouteName(): defined by BaseRouteMatch.
- *
- * @see BaseRouteMatch::setMatchedRouteName()
- * @param string $name
- * @return RouteMatch
- */
- public function setMatchedRouteName($name)
- {
- if ($this->matchedRouteName === null) {
- $this->matchedRouteName = $name;
- } else {
- $this->matchedRouteName = $name . '/' . $this->matchedRouteName;
- }
-
- return $this;
- }
-
- /**
- * Merge parameters from another match.
- *
- * @param RouteMatch $match
- * @return RouteMatch
- */
- public function merge(RouteMatch $match)
- {
- $this->params = array_merge($this->params, $match->getParams());
- $this->length += $match->getLength();
-
- $this->matchedRouteName = $match->getMatchedRouteName();
-
- return $this;
- }
-
- /**
- * Get the matched path length.
- *
- * @return int
- */
- public function getLength()
- {
- return $this->length;
- }
-}