How do I access a private class variable when calling a method statically?
<p>If I have:</p>

<pre><code>&lt;?php
class SomeClass extends SomeOtherClass{
  private $access_code = 'TX9999';

  private static function SomeMethod(){

  }
}

?&gt;
</code></pre>

<p>And do</p>

<pre><code>&lt;?
self::SomeMethod();
?&gt;
</code></pre>

<p>how do I correctly access <code>$access_code</code> in <code>::SomeMethod()</code></p>

<p>More Info </p>

<p>What Im actually facing is more complex.</p>

<p>I have a class with methods that are and must remain static.
I know how to call other methods using self.</p>

<p>However across the class I have things that would ordinarily make sense as constants and variables.</p>

<p>I realise that I haven't got an instance in the normal way and am looking for away to share variables between some of the static methods of the class, some are volatile, some fixed</p>
