mirror of
https://github.com/kevinveenbirkenbach/coding-challenge-online-shop.git
synced 2026-10-27 16:32:35 +00:00
Added Controller draft
This commit is contained in:
1 parent
afa03052a7
commit
562f12c059
3 files changed
+56
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
namespace controller\user;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author kevinfrantz
|
||||
*
|
||||
*/
|
||||
interface UserInterface
|
||||
{
|
||||
public function login():void;
|
||||
|
||||
public function logout():void;
|
||||
|
||||
public function register():void;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user