Dumplie\Customer\Infrastructure\InMemory\InMemoryOrders::getById PHP 메소드

getById() 공개 메소드

public getById ( OrderId $id ) : Order
$id Dumplie\Customer\Domain\OrderId
리턴 Dumplie\Customer\Domain\Order
    public function getById(OrderId $id) : Order
    {
        if (!$this->exists($id)) {
            throw new OrderNotFoundException();
        }
        return $this->orders[(string) $id];
    }