Advertisement
Guest User

Untitled

a guest
Apr 19th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. <?php
  2. declare(strict_types=1);
  3.  
  4. namespace App\Order\Domain\Repository;
  5.  
  6. use App\Order\Domain\Entity\Order;
  7.  
  8. interface OrderRepository
  9. {
  10. /**
  11. * Returns an Order by identification
  12. *
  13. * @param integer $id
  14. * @return Order
  15. */
  16. public function fromId(int $id): Order;
  17.  
  18. /**
  19. * Store the order
  20. *
  21. * @param Order $order
  22. * @return void
  23. */
  24. public function save(Order $order);
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement