Added Controller draft

This commit is contained in:
Kevin Frantz committed 2018-07-14 00:29:51 +02:00
1 parent afa03052a7
commit 562f12c059
3 files changed
+56

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
<?php
namespace controller\order;
/**
* @author kevinfrantz
*
*/
interface OrderInterface
{
/**
* Saves the order
*/
public function store():void;
public function addProduct():void;
public function showBasket():void;
public function selectPaymentMethod():void;
}
@@ -0,0 +1,19 @@
<?php
namespace controller\product;
/**
* @author kevinfrantz
*
*/
interface ProductInterface
{
/**
* An own Class filter would be better,
* but it's to abstract for this concrete exampl ;)
* @param string $color
*/
public function filterByColor(string $color):void;
public function showAll():void;
}
+17
View File
@@ -0,0 +1,17 @@
<?php
namespace controller\user;
/**
*
* @author kevinfrantz
*
*/
interface UserInterface
{
public function login():void;
public function logout():void;
public function register():void;
}