for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Bavix\Router;
use Bavix\Router\Rules\PatternRule;
class Group
{
/**
* @var PatternRule[]
*/
protected $resolver = [];
* @var string
protected $name;
protected $path;
protected $protocol;
protected $host;
* Group constructor.
* @param null|string $path
* @param null|string $name
public function __construct(?string $path, ?string $name)
$this->path = $path;
$this->name = $name;
}
* @return string
public function getProtocol(): string
return $this->protocol;
* @param string $protocol
* @return $this
public function setProtocol(string $protocol): self
$this->protocol = $protocol;
return $this;
public function getHost(): string
return $this->host;
* @param string $host
public function setHost(string $host): self
$this->host = $host;