private function parse_args($args = [])
    {
        $args['NAMESPACE'] = '';

        $class_name = $this->sanitise_filename($args['CLASSNAME']);

        if ($this->is_nested_directory($class_name)) {
            $parts = \explode('\\', $class_name);
            $class = \array_pop($parts);

            $args['NAMESPACE'] = '\\' . \implode('\\', $parts);
            $args['CLASSNAME'] = $class;
        }

        return $args;
    }
private function parse_args($args = [])
    {
        $args['NAMESPACE'] = '';

        $class_name = $this->sanitise_filename($args['CLASSNAME']);

        if ($this->is_nested_directory($class_name)) {
            $parts = \explode('\\', $class_name);
            $class = \array_pop($parts);

            $args['NAMESPACE'] = '\\' . \implode('\\', $parts);
            $args['CLASSNAME'] = $class;
        }

        return $args;
    }
private function parse_args ( $ args = [ ] ) { $ args [ 'NAMESPACE' ] = '' ; $ class_name = $ this -> sanitise_filename ( $ args [ 'CLASSNAME' ] ) ; if ( $ this -> is_nested_directory ( $ class_name ) ) { $ parts = \ explode ( '\\' , $ class_name ) ; $ class = \ array_pop ( $ parts ) ; $ args [ 'NAMESPACE' ] = '\\' . \ implode ( '\\' , $ parts ) ; $ args [ 'CLASSNAME' ] = $ class ; } return $ args ; }
Populates the NAMESPACE argument based off the passed CLASSNAME.

@param  array $args The args passed to the creator.
@return array
Populates the NAMESPACE argument based off the passed CLASSNAME .