protected function getHeader(string $padding = '') : string
    {
        $content = (strlen($this->ns) > 0 ? $padding . "namespace $this->ns;\n\n" : '');

        if (count($this->use_list) > 0) {
            sort($this->use_list, SORT_STRING | SORT_FLAG_CASE);
            foreach ($this->use_list as $used) {
                $content .= $padding . "use $used;\n";
            }
            $content .= "\n";
        }

        return $content;
    }
protected function getHeader(string $padding = '') : string
    {
        $content = (strlen($this->ns) > 0 ? $padding . "namespace $this->ns;\n\n" : '');

        if (count($this->use_list) > 0) {
            sort($this->use_list, SORT_STRING | SORT_FLAG_CASE);
            foreach ($this->use_list as $used) {
                $content .= $padding . "use $used;\n";
            }
            $content .= "\n";
        }

        return $content;
    }
protected function getHeader ( string $ padding = '' ) : string { $ content = ( strlen ( $ this -> ns ) > 0 ? $ padding . "namespace $this->ns;\n\n" : '' ) ; if ( count ( $ this -> use_list ) > 0 ) { sort ( $ this -> use_list , SORT_STRING | SORT_FLAG_CASE ) ; foreach ( $ this -> use_list as $ used ) { $ content .= $ padding . "use $used;\n" ; } $ content .= "\n" ; } return $ content ; }
Overrides parent method to return the header of the file
@param string $padding Padding to place at the beginning of each line
@return string Returns the header as a string
Overrides parent method to return the header of the file