code: protected function assertItemClass(Common\SaleItemInterface $child)
      {
          if (!$child instanceof Model\CartItemInterface) {
              throw new InvalidArgumentException("Expected instance of " . Model\CartItemInterface::class);
          }
      }
docs: Asserts that the given sale item is an instance of the expected class.
  
  @param Common\SaleItemInterface $child