public function getPlan($i = null){
        if (!isset($this->planList)){
            return false;
        } else {
            if (is_int($i)){
                return $this->planList[$i];
            } else {
                return $this->planList;
            }
        }
    }
public function getPlan($i = null){
        if (!isset($this->planList)){
            return false;
        } else {
            if (is_int($i)){
                return $this->planList[$i];
            } else {
                return $this->planList;
            }
        }
    }
public function getPlan ( $ i = null ) { if ( ! isset ( $ this -> planList ) ) { return false ; } else { if ( is_int ( $ i ) ) { return $ this -> planList [ $ i ] ; } else { return $ this -> planList ; } } }
Returns the supply type for the specified entry.

If <i>$i</i> is not specified, the entire list of plans will be returned.
This method will return <b>FALSE</b> if the list has not yet been filled.
The returned array of a single plan will contain the following fields:
<ul>
<li><b>ShipToAddress</b> - See <i>getAddress</i> for details.</li>
<li><b>ShipmentId</b> - Unique ID for the shipment to use.</li>
<li><b>DestinationFulfillmentCenterId</b> - ID for the Fulfillment Center the shipment would ship to.</li>
<li><b>LabelPrepType</b> - Label preparation required.</li>
<li><b>Items</b> - See <i>getItems</i> for details.</li>
</ul>
@param int $i [optional] <p>List index to retrieve the value from. Defaults to NULL.</p>
@return array|boolean plan array, multi-dimensional array, or <b>FALSE</b> if invalid index
Returns the supply type for the specified entry .