You are here

interface PackageInterface in Ubercart 8.4

Provides an interface that defines the Package class.

Hierarchy

Expanded class hierarchy of PackageInterface

All classes that implement PackageInterface

4 files declare their use of PackageInterface
PackageCancelForm.php in shipping/uc_fulfillment/src/Form/PackageCancelForm.php
PackageDeleteForm.php in shipping/uc_fulfillment/src/Form/PackageDeleteForm.php
PackageEditForm.php in shipping/uc_fulfillment/src/Form/PackageEditForm.php
ShipmentController.php in shipping/uc_fulfillment/src/Controller/ShipmentController.php

File

shipping/uc_fulfillment/src/PackageInterface.php, line 8

Namespace

Drupal\uc_fulfillment
View source
interface PackageInterface {

  /**
   * Sets the shipment ID.
   *
   * @param int $sid
   *   The shipment ID.
   *
   * @return $this
   */
  public function setSid($sid);

  /**
   * Returns the shipment ID.
   *
   * @return int
   *   The Shipment ID.
   */
  public function getSid();

  /**
   * Sets the order ID of this shipment.
   *
   * @param int $order_id
   *   The Order ID.
   *
   * @return $this
   */
  public function setOrderId($order_id);

  /**
   * Returns the order ID of this shipment.
   *
   * @return int
   *   The Order ID.
   */
  public function getOrderId();

  /**
   * Sets the shipping type to the given value.
   *
   * @param string $shipping_type
   *   The name of the shipping type.
   *
   * @return $this
   */
  public function setShippingType($shipping_type);

  /**
   * Returns the shipping type.
   *
   * @return string
   *   The name of the shipping type.
   */
  public function getShippingType();

  /**
   * Sets the package type to the given value.
   *
   * @param string $pkg_type
   *   The name of the package type.
   *
   * @return $this
   */
  public function setPackageType($pkg_type);

  /**
   * Returns the package type.
   *
   * @return string
   *   The name of the package type.
   */
  public function getPackageType();

  /**
   * Sets the package length.
   *
   * @param float $length
   *   The package length.
   *
   * @return $this
   */
  public function setLength($length);

  /**
   * Returns the package length.
   *
   * @return float
   *   The package length.
   */
  public function getLength();

  /**
   * Sets the package width.
   *
   * @param float $width
   *   The package width.
   *
   * @return $this
   */
  public function setWidth($width);

  /**
   * Returns the package width.
   *
   * @return float
   *   The package width.
   */
  public function getWidth();

  /**
   * Sets the package height.
   *
   * @param float $height
   *   The package height.
   *
   * @return $this
   */
  public function setHeight($height);

  /**
   * Returns the package height.
   *
   * @return float
   *   The package height.
   */
  public function getHeight();

  /**
   * Sets the package units of length.
   *
   * @param string $length_units
   *   The units used to measure package dimensions.
   *
   * @return $this
   */
  public function setLengthUnits($length_units);

  /**
   * Returns the package units of length.
   *
   * @return string
   *   The units used to measure package dimensions.
   */
  public function getLengthUnits();

  /**
   * Sets the package weight.
   *
   * @param float $weight
   *   The package weight.
   *
   * @return $this
   */
  public function setWeight($weight);

  /**
   * Returns the package weight.
   *
   * @return float
   *   The package weight.
   */
  public function getWeight();

  /**
   * Sets the package units of weight.
   *
   * @param string $weight_units
   *   The units used to measure package weight.
   *
   * @return $this
   */
  public function setWeightUnits($weight_units);

  /**
   * Returns the package units of weight.
   *
   * @return string
   *   The units used to measure package weight.
   */
  public function getWeightUnits();

  /**
   * Sets the package monetary value.
   *
   * @param float $value
   *   The monetary value.
   *
   * @return $this
   */
  public function setValue($value);

  /**
   * Returns the package monetary value.
   *
   * @return float
   *   The monetary value.
   */
  public function getValue();

  /**
   * Sets the currency code used for the package value.
   *
   * @param string $currency
   *   The currency code for this package.
   *
   * @return $this
   */
  public function setCurrency($currency);

  /**
   * Returns the currency code used for the package value.
   *
   * @return string
   *   The currency code for this package.
   */
  public function getCurrency();

  /**
   * Sets the package tracking number.
   *
   * @param string $tracking_number
   *   The tracking number.
   *
   * @return $this
   */
  public function setTrackingNumber($tracking_number);

  /**
   * Returns the package tracking number.
   *
   * @return string
   *   The tracking number.
   */
  public function getTrackingNumber();

  /**
   * Sets package label image.
   *
   * @param string $label_image
   *   The label image.
   *
   * @return $this
   */
  public function setLabelImage($label_image);

  /**
   * Returns package label image.
   *
   * @return string
   *   The label image.
   */
  public function getLabelImage();

  /**
   * Adds products to this package.
   *
   * @param \Drupal\uc_order\OrderProductInterface[] $products
   *   The products to add.
   *
   * @return $this
   */
  public function addProducts(array $products);

  /**
   * Sets all the products in this package.
   *
   * @param \Drupal\uc_order\OrderProductInterface[] $products
   *   The package's products.
   *
   * @return $this
   */
  public function setProducts(array $products);

  /**
   * Returns all the products in this package.
   *
   * @return \Drupal\uc_order\OrderProductInterface[]
   *   The package's products.
   */
  public function getProducts();

  /**
   * Sets the list of ship-from addresses for this package.
   *
   * @param \Drupal\uc_store\AddressInterface[] $addresses
   *   The package's addresses.
   *
   * @return $this
   */
  public function setAddresses(array $addresses);

  /**
   * Returns the list of ship-from addresses for products in this package.
   *
   * @return \Drupal\uc_store\AddressInterface[]
   *   The package's addresses.
   */
  public function getAddresses();

  /**
   * Sets the package description.
   *
   * @param string $description
   *   The package description.
   *
   * @return $this
   */
  public function setDescription($description);

  /**
   * Returns the package description.
   *
   * @return string
   *   The package description.
   */
  public function getDescription();

}

Members

Namesort descending Modifiers Type Description Overrides
PackageInterface::addProducts public function Adds products to this package. 1
PackageInterface::getAddresses public function Returns the list of ship-from addresses for products in this package. 1
PackageInterface::getCurrency public function Returns the currency code used for the package value. 1
PackageInterface::getDescription public function Returns the package description. 1
PackageInterface::getHeight public function Returns the package height. 1
PackageInterface::getLabelImage public function Returns package label image. 1
PackageInterface::getLength public function Returns the package length. 1
PackageInterface::getLengthUnits public function Returns the package units of length. 1
PackageInterface::getOrderId public function Returns the order ID of this shipment. 1
PackageInterface::getPackageType public function Returns the package type. 1
PackageInterface::getProducts public function Returns all the products in this package. 1
PackageInterface::getShippingType public function Returns the shipping type. 1
PackageInterface::getSid public function Returns the shipment ID. 1
PackageInterface::getTrackingNumber public function Returns the package tracking number. 1
PackageInterface::getValue public function Returns the package monetary value. 1
PackageInterface::getWeight public function Returns the package weight. 1
PackageInterface::getWeightUnits public function Returns the package units of weight. 1
PackageInterface::getWidth public function Returns the package width. 1
PackageInterface::setAddresses public function Sets the list of ship-from addresses for this package. 1
PackageInterface::setCurrency public function Sets the currency code used for the package value. 1
PackageInterface::setDescription public function Sets the package description. 1
PackageInterface::setHeight public function Sets the package height. 1
PackageInterface::setLabelImage public function Sets package label image. 1
PackageInterface::setLength public function Sets the package length. 1
PackageInterface::setLengthUnits public function Sets the package units of length. 1
PackageInterface::setOrderId public function Sets the order ID of this shipment. 1
PackageInterface::setPackageType public function Sets the package type to the given value. 1
PackageInterface::setProducts public function Sets all the products in this package. 1
PackageInterface::setShippingType public function Sets the shipping type to the given value. 1
PackageInterface::setSid public function Sets the shipment ID. 1
PackageInterface::setTrackingNumber public function Sets the package tracking number. 1
PackageInterface::setValue public function Sets the package monetary value. 1
PackageInterface::setWeight public function Sets the package weight. 1
PackageInterface::setWeightUnits public function Sets the package units of weight. 1
PackageInterface::setWidth public function Sets the package width. 1