added getters & setters

This commit is contained in:
tracer 2022-10-23 12:44:55 +02:00
parent a3b2bf27f1
commit 5447a7dbad
1 changed files with 7 additions and 30 deletions

View File

@ -1,4 +1,11 @@
<?php <?php
/*
* Copyright (c) 2022. Micha Espey <tracer@24unix.net>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
*/
namespace App\Entity; namespace App\Entity;
@ -17,81 +24,51 @@ class Route
// empty body // empty body
} }
/**
* @return string
*/
public function getName(): string public function getName(): string
{ {
return $this->name; return $this->name;
} }
/**
* @param string $name
*/
public function setName(string $name): void public function setName(string $name): void
{ {
$this->name = $name; $this->name = $name;
} }
/**
* @return string
*/
public function getRoute(): string public function getRoute(): string
{ {
return $this->route; return $this->route;
} }
/**
* @param string $route
*/
public function setRoute(string $route): void public function setRoute(string $route): void
{ {
$this->route = $route; $this->route = $route;
} }
/**
* @return string
*/
public function getRegEx(): string public function getRegEx(): string
{ {
return $this->regEx; return $this->regEx;
} }
/**
* @param string $regEx
*/
public function setRegEx(string $regEx): void public function setRegEx(string $regEx): void
{ {
$this->regEx = $regEx; $this->regEx = $regEx;
} }
/**
* @return array
*/
public function getParameters(): array public function getParameters(): array
{ {
return $this->parameters; return $this->parameters;
} }
/**
* @param array $parameters
*/
public function setParameters(array $parameters): void public function setParameters(array $parameters): void
{ {
$this->parameters = $parameters; $this->parameters = $parameters;
} }
/**
* @return Closure
*/
public function getCallback(): Closure public function getCallback(): Closure
{ {
return $this->callback; return $this->callback;
} }
/**
* @param Closure $callback
*/
public function setCallback(Closure $callback): void public function setCallback(Closure $callback): void
{ {
$this->callback = $callback; $this->callback = $callback;