public function addDependency($filename)
    {
        if (in_array($filename, $this->dependencies) == false) {
            $this->dependencies[] = $filename;
        }
    }
public function addDependency($filename)
    {
        if (in_array($filename, $this->dependencies) == false) {
            $this->dependencies[] = $filename;
        }
    }
public function addDependency ( $ filename ) { if ( in_array ( $ filename , $ this -> dependencies ) == false ) { $ this -> dependencies [ ] = $ filename ; } }
Adds a dependency to be loaded for the class to use
Only adds it if it does not already exist

@param string $filename
Adds a dependency to be loaded for the class to use Only adds it if it does not already exist