Exakat\Tasks\Load::setNamespace PHP Метод

setNamespace() приватный Метод

private setNamespace ( $namespaceId )
    private function setNamespace($namespaceId = 0)
    {
        if ($namespaceId === 0) {
            $this->namespace = '\\';
            $this->uses = array('function' => array(), 'const' => array(), 'class' => array());
        } elseif ($this->atoms[$namespaceId]['atom'] === 'Void') {
            $this->namespace = '\\';
        } else {
            $this->namespace = strtolower($this->atoms[$namespaceId]['fullcode']) . '\\';
            if ($this->namespace[0] !== '\\') {
                $this->namespace = '\\' . $this->namespace;
            }
        }
    }
Load