public function getDestinations($i = null){
        if (isset($this->destinationList)){
            if (is_numeric($i)){
                return $this->destinationList[$i];
            } else {
                return $this->destinationList;
            }
        } else {
            return false;
        }
    }
public function getDestinations($i = null){
        if (isset($this->destinationList)){
            if (is_numeric($i)){
                return $this->destinationList[$i];
            } else {
                return $this->destinationList;
            }
        } else {
            return false;
        }
    }
public function getDestinations ( $ i = null ) { if ( isset ( $ this -> destinationList ) ) { if ( is_numeric ( $ i ) ) { return $ this -> destinationList [ $ i ] ; } else { return $ this -> destinationList ; } } else { return false ; } }
Returns the specified destination, or all of them.

This method will return <b>FALSE</b> if the list has not yet been filled.
The array for a single order item will have the following fields:
<ul>
<li><b>DeliveryChannel</b> - the technology used to receive notifications</li>
<li><b>AttributeList</b> - array of key/value pairs</li>
</ul>
@param int $i [optional] <p>List index to retrieve the value from.
If none is given, the entire list will be returned. Defaults to NULL.</p>
@return array|boolean array, multi-dimensional array, or <b>FALSE</b> if list not filled yet
Returns the specified destination or all of them .