public function generateStruct(Struct $struct): string
    {
        $classNamePostfix = '';
        if ($struct instanceof Response) {
            $classNamePostfix = 'Response';
        }
        if ($struct instanceof Request) {
            $classNamePostfix = 'Request';
        }
        return $this->twig->render('struct.html', [
            'classNamePostfix' => $classNamePostfix,
            'struct' => $struct,
            'namespace' => $this->getNamespace(),
            'full_namespace' => $this->getFullNamespace()
        ]);
    }
public function generateStruct(Struct $struct): string
    {
        $classNamePostfix = '';
        if ($struct instanceof Response) {
            $classNamePostfix = 'Response';
        }
        if ($struct instanceof Request) {
            $classNamePostfix = 'Request';
        }
        return $this->twig->render('struct.html', [
            'classNamePostfix' => $classNamePostfix,
            'struct' => $struct,
            'namespace' => $this->getNamespace(),
            'full_namespace' => $this->getFullNamespace()
        ]);
    }
public function generateStruct ( Struct $ struct ) : string { $ classNamePostfix = '' ; if ( $ struct instanceof Response ) { $ classNamePostfix = 'Response' ; } if ( $ struct instanceof Request ) { $ classNamePostfix = 'Request' ; } return $ this -> twig -> render ( 'struct.html' , [ 'classNamePostfix' => $ classNamePostfix , 'struct' => $ struct , 'namespace' => $ this -> getNamespace ( ) , 'full_namespace' => $ this -> getFullNamespace ( ) ] ) ; }
Generate a single struct
@param  Struct  $struct
@return string
Generate a single struct