App\Models\Store\OrderItem::subtotal PHP 메소드

subtotal() 공개 메소드

public subtotal ( )
    public function subtotal()
    {
        return $this->cost * $this->quantity;
    }