mirror of
https://github.com/fruithost/Panel.git
synced 2026-11-07 04:22:35 +09:00
24 lines
415 B
PHP
24 lines
415 B
PHP
<?php
|
|
namespace fruithost;
|
|
|
|
class Route {
|
|
private $path = '/';
|
|
private $callback = NULL;
|
|
|
|
public function getPath() : string {
|
|
return $this->path;
|
|
}
|
|
|
|
public function setPath(string $path) {
|
|
$this->path = $path;
|
|
}
|
|
|
|
public function getCallback() : callable {
|
|
return $this->callback;
|
|
}
|
|
|
|
public function setCallback(callable $callback) {
|
|
$this->callback = $callback;
|
|
}
|
|
}
|
|
?>
|