Permalink
Browse files

新增 ShippingService

  • Loading branch information...
1 parent f985af0 commit 17f65cac2469d1d6af871cebde10a3b9d01bb80f Sam.IO.Hsiao committed Nov 20, 2016
Showing with 18 additions and 0 deletions.
  1. +18 −0 app/Services/ShippingService.php
@@ -0,0 +1,18 @@
+<?php
+
+declare(strict_types = 1);
+
+namespace App\Services;
+
+class ShippingService
+{
+ /**
+ * 計算運費
+ * @param int $weight
+ * @return int
+ */
+ private function calculateFee(int $weight) : int
+ {
+ return 100 * $weight + 10;
+ }
+}

0 comments on commit 17f65ca

Please sign in to comment.