MAPG-86 refactor view-controller
This commit is contained in:
1 parent
b0b244712f
commit
88fe7b7a03
7 files changed
+62
-17
No files matched your search
@@ -1,8 +0,0 @@
|
||||
<?php namespace MapGuesser\Interfaces\Controller;
|
||||
|
||||
use MapGuesser\Interfaces\View\IView;
|
||||
|
||||
interface IController
|
||||
{
|
||||
public function run(): IView;
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php namespace MapGuesser\Interfaces\View;
|
||||
<?php namespace MapGuesser\Interfaces\Response;
|
||||
|
||||
interface IView
|
||||
interface IContent
|
||||
{
|
||||
public function &getData(): array;
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
<?php namespace MapGuesser\Interfaces\Response;
|
||||
|
||||
interface IRedirect
|
||||
{
|
||||
const PERMANENT = 1;
|
||||
|
||||
const TEMPORARY = 2;
|
||||
|
||||
public function getUrl(): string;
|
||||
|
||||
public function getHttpCode(): int;
|
||||
}
|
||||
Reference in new issue
Block a user