/** * Constructor for the Object * * @access public * @param string $tracking_number number of the pacaage(s) we are tracking * @param array $inquiry array of inquiry data */ public function __construct($tracking_number = null, $inquiry = array()) { parent::__construct(); // set object properties $this->server .= 'Track'; $this->tracking_number = $tracking_number; $this->inquiry_array = $inquiry; }
/** * Constructor for the Object * * @access public * @param array $shipment array of shipment data * @param array $shipper array of shipper data * @param array $ship_from array of ship from data * @param array $desination array of destination data */ public function __construct($shipment, $shipper, $ship_from, $destination) { parent::__construct(); $this->import('Isotope'); // set object properties $this->shipment = $shipment; $this->shipper = $shipper; $this->ship_from = $ship_from; $this->destination = $destination; $this->fedex_service = $shipment['service']; $this->fedex_packaging = $shipment['packaging_type']; }