File tree Expand file tree Collapse file tree 5 files changed +28
-49
lines changed
Http/Controllers/Product/Backend Expand file tree Collapse file tree 5 files changed +28
-49
lines changed Original file line number Diff line number Diff line change 44 * For : INNOVATE E-COMMERCE
55 * User: MIKI$
66 * Date: 3/18/2016
7- * Time: 12:44 PM
7+ * Time: 12:44 PM.
88 */
9-
109namespace app \Http \Controllers \Product \Backend ;
1110
1211use App \Http \Controllers \CommandsDomainEventController ;
13- use Innovate \Products \PostProductCommand ;
1412use Illuminate \Support \Facades \Input ;
13+ use Innovate \Products \PostProductCommand ;
1514use Innovate \Products \ProductSoldCommand ;
1615
1716/**
18- * Class ProductController
19- * @package app\Http\Controllers\Product\Backend
17+ * Class ProductController.
2018 */
21- class ProductController extends CommandsDomainEventController{
22-
23- /**
24- *
25- */
19+ class ProductController extends CommandsDomainEventController
20+ {
2621 public function store ()
2722 {
28- $ input = Input::only ('title ' ,'description ' );
29- $ command = new PostProductCommand ($ input ['title ' ],$ input ['description ' ]);
30- $ this ->commandBus ->execute ($ command );
23+ $ input = Input::only ('title ' , 'description ' );
24+ $ command = new PostProductCommand ($ input ['title ' ], $ input ['description ' ]);
25+ $ this ->commandBus ->execute ($ command );
3126 }
3227
3328 /**
@@ -38,5 +33,4 @@ public function delete($productId)
3833 $ command = new ProductSoldCommand ($ productId );
3934 $ this ->commandBus ->execute ($ command );
4035 }
41-
42- }
36+ }
Original file line number Diff line number Diff line change 44 * For : INNOVATE E-COMMERCE
55 * User: MIKI$
66 * Date: 3/18/2016
7- * Time: 5:31 PM
7+ * Time: 5:31 PM.
88 */
9-
109namespace Innovate \Products ;
1110
12-
1311/**
14- * Class ProductWasPosted
15- * @package Innovate\Products
12+ * Class ProductWasPosted.
1613 */
17- class ProductIsAboutToBePosted {
18-
14+ class ProductIsAboutToBePosted
15+ {
1916 /**
2017 * @var Product
2118 */
@@ -24,10 +21,8 @@ class ProductIsAboutToBePosted {
2421 /**
2522 * @param Product $product
2623 */
27- function __construct (Product $ product )
24+ public function __construct (Product $ product )
2825 {
2926 $ this ->product = $ product ;
3027 }
31-
32-
33- }
28+ }
Original file line number Diff line number Diff line change 44 * For : INNOVATE E-COMMERCE
55 * User: MIKI$
66 * Date: 3/18/2016
7- * Time: 10:30 PM
7+ * Time: 10:30 PM.
88 */
9-
109namespace Innovate \Products ;
1110
12-
1311/**
14- * Class ProductWasArchived
15- * @package Innovate\Products
12+ * Class ProductWasArchived.
1613 */
17- class ProductWasArchived {
18-
14+ class ProductWasArchived
15+ {
1916 /**
2017 * @var Product
2118 */
@@ -24,10 +21,8 @@ class ProductWasArchived {
2421 /**
2522 * @param Product $product
2623 */
27- function __construct (Product $ product )
24+ public function __construct (Product $ product )
2825 {
2926 $ this ->product = $ product ;
3027 }
31-
32-
33- }
28+ }
Original file line number Diff line number Diff line change 44 * For : INNOVATE E-COMMERCE
55 * User: MIKI$
66 * Date: 3/18/2016
7- * Time: 5:31 PM
7+ * Time: 5:31 PM.
88 */
9-
109namespace Innovate \Products ;
1110
12-
1311/**
14- * Class ProductWasPosted
15- * @package Innovate\Products
12+ * Class ProductWasPosted.
1613 */
17- class ProductWasPosted {
18-
14+ class ProductWasPosted
15+ {
1916 /**
2017 * @var Product
2118 */
@@ -24,10 +21,8 @@ class ProductWasPosted {
2421 /**
2522 * @param Product $product
2623 */
27- function __construct (Product $ product )
24+ public function __construct (Product $ product )
2825 {
2926 $ this ->product = $ product ;
3027 }
31-
32-
33- }
28+ }
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ public function it_fetches_lessons()
2626
2727 private function makeProduct ()
2828 {
29- return true ;
29+ return true ;
3030 }
3131
3232 private function getResponse ($ string )
You can’t perform that action at this time.
0 commit comments