mirror of
https://github.com/kevinveenbirkenbach/coding-challenge-online-shop.git
synced 2024-11-01 00:53:10 +01:00
Added Controller draft
This commit is contained in:
parent
afa03052a7
commit
562f12c059
20
src/controller/order/OrderInterface.php
Normal file
20
src/controller/order/OrderInterface.php
Normal 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;
|
||||
}
|
19
src/controller/product/ProductInterface.php
Normal file
19
src/controller/product/ProductInterface.php
Normal 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;
|
||||
}
|
||||
|
17
src/controller/user/UserInterface.php
Normal file
17
src/controller/user/UserInterface.php
Normal 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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user