DataSift\Storyplayer\PlayerLib\Report_Loader::setNamespaces PHP Метод

setNamespaces() публичный Метод

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 'Reports' namespace first, in case
        // users don't want to uniquely namespace their Report classes
        $this->namespaces = array("Reports");
        // 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 Reports with their own if they prefer
        $this->namespaces[] = "DataSift\\Storyplayer\\Reports";
    }