public function testGetters() { $this->assertSame('Pending', OrderStatusType::pending()->getName()); $this->assertSame('Processing', OrderStatusType::processing()->getName()); $this->assertSame('Partially Shipped', OrderStatusType::partiallyShipped()->getName()); $this->assertSame('Shipped', OrderStatusType::shipped()->getName()); $this->assertSame('Complete', OrderStatusType::complete()->getName()); $this->assertSame('Canceled', OrderStatusType::canceled()->getName()); }
public function __construct(UuidInterface $id = null) { $this->setId($id); $this->setCreated(); $this->orderItems = new ArrayCollection(); $this->payments = new ArrayCollection(); $this->coupons = new ArrayCollection(); $this->cartPriceRules = new ArrayCollection(); $this->shipments = new ArrayCollection(); $this->setStatus(OrderStatusType::pending()); }
public function getOrderStatusType() { return OrderStatusType::pending(); }