mirror of
https://github.com/kevinveenbirkenbach/coding-challenge-online-shop.git
synced 2025-09-10 11:57:12 +02:00
Added Repository draft
This commit is contained in:
24
src/repository/product/ProductInterface.php
Normal file
24
src/repository/product/ProductInterface.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
namespace repository\product;
|
||||
|
||||
use Doctrine\Common\Collections\ArrayCollection;
|
||||
use entity\product\ProductInterface as ProductEntityInterface;
|
||||
/**
|
||||
*
|
||||
* @author kevinfrantz
|
||||
*
|
||||
*/
|
||||
interface ProductInterface
|
||||
{
|
||||
public function getAllProducts():ArrayCollection;
|
||||
|
||||
/**
|
||||
* Just exists for maintaining reasons ;)
|
||||
*/
|
||||
public function deleteAllProducts():void;
|
||||
|
||||
public function addProducts(ArrayCollection $products):void;
|
||||
|
||||
public function getProductById(int $id):ProductEntityInterface;
|
||||
}
|
||||
|
Reference in New Issue
Block a user