src/ClassGeneration/PhpClass.php
protected function toStringType()
    {
        $type = 'class ';

        switch (true) {
            case $this->isInterface():
                $type = 'interface ';
                break;
            case $this->isAbstract():
                $type = 'abstract class ';
                break;
            case $this->isFinal():
                $type = 'final class ';
                break;
            case $this->isTrait():
                $type = 'trait ';
        }

        return $type;
    }
protected function toStringType()
    {
        $type = 'class ';

        switch (true) {
            case $this->isInterface():
                $type = 'interface ';
                break;
            case $this->isAbstract():
                $type = 'abstract class ';
                break;
            case $this->isFinal():
                $type = 'final class ';
                break;
            case $this->isTrait():
                $type = 'trait ';
        }

        return $type;
    }
protected function toStringType ( ) { $ type = 'class ' ; switch ( true ) { case $ this -> isInterface ( ) : $ type = 'interface ' ; break ; case $ this -> isAbstract ( ) : $ type = 'abstract class ' ; break ; case $ this -> isFinal ( ) : $ type = 'final class ' ; break ; case $ this -> isTrait ( ) : $ type = 'trait ' ; } return $ type ; }
Get string based on type set.
@return string
Get string based on type set .