public function generate($layer_name, $primitive_name, FQCN $qcn): array
    {
        $generated_stubs = $this->generateDry($layer_name, $primitive_name, $qcn);
        
        foreach ($generated_stubs as $target_path => $stub_file) {
            $this->writeStubs($target_path, $stub_file);
        }
        
        return $generated_stubs;
    }
public function generate($layer_name, $primitive_name, FQCN $qcn): array
    {
        $generated_stubs = $this->generateDry($layer_name, $primitive_name, $qcn);
        
        foreach ($generated_stubs as $target_path => $stub_file) {
            $this->writeStubs($target_path, $stub_file);
        }
        
        return $generated_stubs;
    }
public function generate ( $ layer_name , $ primitive_name , FQCN $ qcn ) : array { $ generated_stubs = $ this -> generateDry ( $ layer_name , $ primitive_name , $ qcn ) ; foreach ( $ generated_stubs as $ target_path => $ stub_file ) { $ this -> writeStubs ( $ target_path , $ stub_file ) ; } return $ generated_stubs ; }
Generate command will generate files from stubs and put them to target folders


@param string $layer_name     f.e. app or infrastructure
@param string $primitive_name f.e. event
@param FQCN   $qcn            f.e. Some/Namespaced/Name

@return array of generated files
Generate command will generate files from stubs and put them to target folders