mirror of
https://github.com/kevinveenbirkenbach/coding-challenge-online-shop.git
synced 2025-09-09 19:37:12 +02:00
Added drafts for entity interfaces
This commit is contained in:
31
src/entity/price/PriceInterface.php
Normal file
31
src/entity/price/PriceInterface.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
namespace entity\price;
|
||||
|
||||
use entity\currency\CurrencyInterface;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author kevinfrantz
|
||||
*
|
||||
*/
|
||||
interface PriceInterface
|
||||
{
|
||||
/**
|
||||
* Sets the price
|
||||
* @param CurrencyInterface $price
|
||||
*/
|
||||
public function setPrice(CurrencyInterface $price):void;
|
||||
|
||||
/**
|
||||
* Returns the netto price
|
||||
* @return int
|
||||
*/
|
||||
public function getNetto():CurrencyInterface;
|
||||
|
||||
/**
|
||||
* Returns the gross price
|
||||
* @return int
|
||||
*/
|
||||
public function getGross():CurrencyInterface;
|
||||
}
|
||||
|
Reference in New Issue
Block a user