public function check() { $shopInfo = new ShopInfo($this->module_srl); if ($minOrder = $shopInfo->getMinimumOrder()) { // TO DO getPrice() doesn't work without true if ($this->getPrice(true) < $minOrder) { throw new ShopException("Minimum order amount of {$minOrder} not met"); } } return true; }