private function prepareClassComments(string $author_name = null, string $author_email = null)
    {
        $this->addComment(
                "Class to manage the $this->entity_name as a XML branch."
        );

        if ($author_name !== null || $author_email !== null) {
            $this->addComment(
                trim("@author"
                     . (is_string($author_name) ? ' ' . $author_name : '')
                     . (is_string($author_email) ? " <$author_email>" : '')
                )
            );
        }

        if ($this->since_version !== null && strlen($this->since_version) > 0) {
            $this->addComment("@since $this->since_version");
        }

        $this->addComment('@version ' . NABU_VERSION);
        $this->addComment("@package \\$this->class_namespace");
    }
private function prepareClassComments(string $author_name = null, string $author_email = null)
    {
        $this->addComment(
                "Class to manage the $this->entity_name as a XML branch."
        );

        if ($author_name !== null || $author_email !== null) {
            $this->addComment(
                trim("@author"
                     . (is_string($author_name) ? ' ' . $author_name : '')
                     . (is_string($author_email) ? " <$author_email>" : '')
                )
            );
        }

        if ($this->since_version !== null && strlen($this->since_version) > 0) {
            $this->addComment("@since $this->since_version");
        }

        $this->addComment('@version ' . NABU_VERSION);
        $this->addComment("@package \\$this->class_namespace");
    }
private function prepareClassComments ( string $ author_name = null , string $ author_email = null ) { $ this -> addComment ( "Class to manage the $this->entity_name as a XML branch." ) ; if ( $ author_name !== null || $ author_email !== null ) { $ this -> addComment ( trim ( "@author" . ( is_string ( $ author_name ) ? ' ' . $ author_name : '' ) . ( is_string ( $ author_email ) ? " <$author_email>" : '' ) ) ) ; } if ( $ this -> since_version !== null && strlen ( $ this -> since_version ) > 0 ) { $ this -> addComment ( "@since $this->since_version" ) ; } $ this -> addComment ( '@version ' . NABU_VERSION ) ; $ this -> addComment ( "@package \\$this->class_namespace" ) ; }
Prepare the class header comments.
@param string $author_name Name of the author to place in class comments
@param string $author_email e-Mail of the author to place in class comments
Prepare the class header comments .