Added Controller draft

This commit is contained in:
Kevin Frantz 2018-07-14 00:29:51 +02:00
parent afa03052a7
commit 562f12c059
3 changed files with 56 additions and 0 deletions

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;
}

View File

@ -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;
}

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;
}