code: public function setQuantity( $quantity )
      {
          if (!is_int( $quantity )) {
              throw new InvalidArgumentException( sprintf( 'Invalid quantity', $quantity ) );
          }
  
          $this->quantity = $quantity;
  
          return $this;
      }
docs: @param  string $quantity
  
  @return $this