Menu

## CodeGenerator
in package

AbstractYes
CodeGenerator.php : 11

Base for all code generators in Pionia

### Table of Contents

#### Properties

$name : string
$output : OutputInterface|null

#### Methods

generate() : mixed
createFile() : void
getOrCreateDirectory() : string
log() : void
sweetName() : string
  Spices up the name a little 'user' becomes 'UserService'

### Properties

#### $name

CodeGenerator.php : 13
`protected string $name`

#### $output

CodeGenerator.php : 14
`protected OutputInterface|null $output = null`

### Methods

#### generate()

CodeGenerator.php : 29
`public abstract generate() : mixed`

#### createFile()

CodeGenerator.php : 48
`protected createFile(string $filename, string $content) : void`

##### Parameters

$filename : string
$content : string

#### getOrCreateDirectory()

CodeGenerator.php : 40
`protected getOrCreateDirectory(string $directory) : string`

##### Parameters

$directory : string

##### Return values

string

#### log()

CodeGenerator.php : 31
`protected log(string $message) : void`

##### Parameters

$message : string

#### sweetName()

CodeGenerator.php : 21

Spices up the name a little 'user' becomes 'UserService'

`protected sweetName(string $type) : string`

##### Parameters

$type : string

##### Return values

string

## Search results