title: Set Property in Static Class
body: <p>I have this code:</p>
  
  <pre><code>&lt;?php
  
  class test {
      public static function plus($input) {
          $conf = variable_get('config');
          $b = $conf['var'];
          return (int)$input + (int)$b;
      }
  
      public static function minus($input) {
          $conf = variable_get('config');
          $b = $conf['var'];
          return (int)$input - (int)$b;
      }
  }
  </code></pre>
  
  <p>instead of call <code>variable_get</code> to load configuration in each method, i want to set configuration in property, so I can call it inside all methods.
  how to create it? I tried to create <code>public function __construct() {}</code> and set the property, but still can not call it inside methods.</p>
  
  <p>thanks,</p>