From 6fcef40e10d73c693ef8f220db814f6b0a47f66f Mon Sep 17 00:00:00 2001 From: Kevin Frantz Date: Sat, 14 Jul 2018 00:15:00 +0200 Subject: [PATCH] Added drafts for entity interfaces --- src/entity/color/ColorInterface.php | 16 ++++++ src/entity/currency/CurrencyInterface.php | 41 +++++++++++++++ src/entity/image/ImageInterface.php | 26 ++++++++++ src/entity/order/OrderInterface.php | 59 +++++++++++++++++++++ src/entity/payment/PaymentInterface.php | 12 +++++ src/entity/price/PriceInterface.php | 31 +++++++++++ src/entity/product/ProductInterface.php | 63 +++++++++++++++++++++++ src/entity/user/UserInterface.php | 49 ++++++++++++++++++ 8 files changed, 297 insertions(+) create mode 100644 src/entity/color/ColorInterface.php create mode 100644 src/entity/currency/CurrencyInterface.php create mode 100644 src/entity/image/ImageInterface.php create mode 100644 src/entity/order/OrderInterface.php create mode 100644 src/entity/payment/PaymentInterface.php create mode 100644 src/entity/price/PriceInterface.php create mode 100644 src/entity/product/ProductInterface.php create mode 100644 src/entity/user/UserInterface.php diff --git a/src/entity/color/ColorInterface.php b/src/entity/color/ColorInterface.php new file mode 100644 index 0000000..5fe2025 --- /dev/null +++ b/src/entity/color/ColorInterface.php @@ -0,0 +1,16 @@ + In a real application: Entity Email ;) + * @author kevinfrantz + * + */ +interface UserInterface +{ + /** + * @param string $hash + */ + public function setPasswordHash(string $hash):void; + + /** + * @return string + */ + public function getPasswordHash():string; + + /** + * @param string $name + */ + public function setName(string $name):void; + + /** + * @return string + */ + public function getName():string; + + /** + * @param string $email + */ + public function setEmail(string $email):void; + + /** + * @return string + */ + public function getEmail():string; + + /** + * @return int + */ + public function getId():int; +} +