DataSift\Storyplayer\PlayerLib\Phase_Loader::setNamespaces PHP Method

setNamespaces() public method

public setNamespaces ( $namespaces = [] )
    public function setNamespaces($namespaces = array())
    {
        // a list of the namespaces we're going to search for this class
        //
        // we always search the generic 'Phases' namespace first, in case
        // users don't want to uniquely namespace their Phase classes
        $this->namespaces = array("Phases");
        // add in any additional namespaces we've been asked to search
        foreach ($namespaces as $namespace) {
            $this->namespaces[] = $namespace;
        }
        // we search our own namespace last, as it allows the user to
        // replace our Phases with their own if they prefer
        $this->namespaces[] = "DataSift\\Storyplayer\\Phases";
    }