/** * Construct a openTrans dispatchnotificationinfo * * @param string dispatchnotification_id * @param string dispatchnotification_date */ public function __construct($dispatchnotification_id, $dispatchnotification_date) { if (!is_string($dispatchnotification_id)) { throw new rs_opentrans_exception('$dispatchnotification_id must be a string.'); } if (!is_string($dispatchnotification_date)) { throw new rs_opentrans_exception('$dispatchnotification_date must be a string.'); } parent::__construct($dispatchnotification_id, $dispatchnotification_date); }
/** * Construct a openTrans orderinfo * * @param string order_id * @param string order_date */ public function __construct($order_id, $order_date) { if (!is_string($order_id)) { throw new rs_opentrans_exception('$order_id must be a string.'); } if (!is_string($order_date)) { throw new rs_opentrans_exception('$order_date must be a string.'); } parent::__construct($order_id, $order_date); }