yii\gii\CodeFile::getType PHP Method

getType() public method

public getType ( ) : string
return string the code file extension (e.g. php, txt)
    public function getType()
    {
        if (($pos = strrpos($this->path, '.')) !== false) {
            return substr($this->path, $pos + 1);
        } else {
            return 'unknown';
        }
    }