Only One "Global" variable - Implementing Correctly?
<p>I reduced my globals to only one.  Seems a bit weird to inject a class with only one variable and a getter function, but I don't want any implicit dependencies, I want them all explicit and documented.  Also I only want the "globals" accessible to the classes I give access to.  So in a sense they are not global.  Need to re-name to shared.  LOAD_ON is the only variable that I need in multiple classes.</p>

<p>Is this the correct way (best practice) to implement a "global" variable when trying to adhere to <a href="http://en.wikipedia.org/wiki/SOLID" rel="nofollow">SOLID</a> / DRY (Don't Repeat Yourself) / OOP ( Object Oriented Programming).</p>

<pre><code>&lt;?php 

class GlobalClass
{
    private $LOAD_ON = 0;
    public function getLoad()
    {
        return $this-&gt;LOAD_ON;
    }
}
</code></pre>
