title: Simple PHP error: syntax error, unfinished class declaration
body: <p>I get two errors and I dont know how to fix this. </p>
  
  <p>I get the error "syntax error, unfinished class declaration" at the line:</p>
  
  <pre><code>private $language;
  </code></pre>
  
  <p>I get "syntax error, unexpected 'public', expecting 'EOF'" at the line:</p>
  
  <pre><code>public function getCurrencies()
  </code></pre>
  
  <p>This is the whole code:</p>
  
  <pre><code>class Driver extends Driver{
  
  public static $url = "http://www.com/";
  /* The method of posting data to the website */
  public static $method = "GET";
  /* The part of the url extending the domain name until the search term */
  public static $url_searchbase = "search/searchresults.aspx?N=0&amp;Ntt=";
  /* The part of the url entailing the search term, deifining additional paramters */
  public static $url_searchtail = "&amp;Ntk=Primary&amp;i=0&amp;sw=n&amp;ps=9999&amp;pn=1";
  private $currency;
  private $language;
  /* Allowed currencies */
  $currencies = array("USD", "CAD");
  /* Allowed languages */
  $languages = array("ENU");
  
  function __construct($currency, $language){
      if(setCurrency($currency) AND setLanguage($language)){
          return TRUE;
      } else {
          trigger_error("Currency '". $currency ."' or Language '". $language ."' not supported.", E_USER_ERROR);
          return FALSE;
      }
  }
  
  /*
   * Return an array of allowed currencies
   */
  public function getCurrencies(){
      return $currencies;
  }
  
  /*
   * Set the currency
   */
  function setCurrency($currency){
      if(in_array($currency, $this-&gt;$currencies)
      {
          $this-&gt;$currency = $currency;
          return TRUE;
      } else {
          trigger_error("Currency '". $currency ."' not supported.", E_USER_ERROR);
          return FALSE;
      }
  }
  
  /*
   * Return an array of allowed languages
   */
  public function getLanguages(){
      return $languages;
  }
  
  /*
   * Set the language
   */
  public function setLanguage($language){
          if(in_array($language, $this-&gt;$languages)
      {
          $this-&gt;$language = $language;
          return TRUE;
      } else {
          trigger_error("Language '". $language ."' not supported.", E_USER_ERROR);
          return FALSE;
      }
  }
  
  }
  </code></pre>