Dumplie\CustomerService\Infrastructure\InMemory\InMemoryOrders::__construct PHP 메소드

__construct() 공개 메소드

public __construct ( array $orders = [] )
$orders array
    public function __construct(array $orders = [])
    {
        $this->orders = [];
        foreach ($orders as $cart) {
            $this->add($cart);
        }
    }