Created
February 28, 2015 18:15
-
-
Save ricfrank/26246bd90baa99cad61a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class OrderProcessedViewModel | |
{ | |
public $orderId; | |
public $paymentDetails; | |
public $shippingDetails; | |
public static function createFromOrder(Order $order) | |
{ | |
$orderProcessedViewModel = new OrderProcessedViewModel(); | |
$orderProcessedViewModel->orderId = $order->getOrderId(); | |
$orderProcessedViewModel->paymentDetails = new OrderPaymentConfirmation(); | |
$orderProcessedViewModel->shippingDetails = new OrderShippingConfirmation(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment