for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
*
* (c) Yaroslav Honcharuk <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Yarhon\RouteGuardBundle\Routing;
/**
* @author Yaroslav Honcharuk <[email protected]>
class RouteContext implements RouteContextInterface
{
* @var string
private $name;
* @var array
private $parameters;
private $method;
* @param string $name
* @param array $parameters
* @param string $method
public function __construct($name, array $parameters = [], $method = 'GET')
$this->name = $name;
$this->parameters = $parameters;
$this->method = $method;
}
* {@inheritdoc}
public function getName()
return $this->name;
public function getParameters()
return $this->parameters;
public function getMethod()
return $this->method;