Builder
Table of Contents
-
BUILD_COMMAND
= "build:command"
-
BUILD_COMMANDS
= [self::BUILD_MODEL, self::BUILD_CONTROLLER, self::BUILD_MIDDLEWARE, self::BUILD_COMMAND]
-
BUILD_CONTROLLER
= "build:controller"
-
BUILD_MIDDLEWARE
= "build:middleware"
-
BUILD_MODEL
= "build:model"
-
$args
: array<string|int, mixed>
-
$controllerConfig
: array<string|int, mixed>
-
$forceCreate
: bool
-
$modelConfig
: array<string|int, mixed>
-
$name
: string
-
$resource
: string
-
__construct()
: mixed
-
createFile()
: mixed
-
generateCommand()
: mixed
-
generateController()
: mixed
-
generateMiddleware()
: mixed
-
generateModel()
: mixed
-
generateResource()
: mixed
-
getCommandContent()
: mixed
-
getControllerContent()
: mixed
-
getMiddlewareContent()
: mixed
-
getModelContent()
: mixed
BUILD_COMMAND
public
mixed
BUILD_COMMAND
= "build:command"
BUILD_COMMANDS
public
mixed
BUILD_COMMANDS
= [self::BUILD_MODEL, self::BUILD_CONTROLLER, self::BUILD_MIDDLEWARE, self::BUILD_COMMAND]
BUILD_CONTROLLER
public
mixed
BUILD_CONTROLLER
= "build:controller"
BUILD_MIDDLEWARE
public
mixed
BUILD_MIDDLEWARE
= "build:middleware"
BUILD_MODEL
public
mixed
BUILD_MODEL
= "build:model"
$args
private
array<string|int, mixed>
$args
$controllerConfig
private
array<string|int, mixed>
$controllerConfig
= ['api' => false, 'model' => null]
$forceCreate
private
bool
$forceCreate
= false
$modelConfig
private
array<string|int, mixed>
$modelConfig
= ['api' => false, 'controller' => false]
$name
private
string
$name
= ""
$resource
private
string
$resource
__construct()
public
__construct(string $resource, array<string|int, mixed> $args) : mixed
Parameters
-
$resource
: string
-
-
$args
: array<string|int, mixed>
-
Return values
mixed
—
createFile()
public
createFile(mixed $dir, mixed $filename, mixed $content) : mixed
Parameters
-
$dir
: mixed
-
-
$filename
: mixed
-
-
$content
: mixed
-
Return values
mixed
—
generateCommand()
public
generateCommand() : mixed
Return values
mixed
—
generateController()
public
generateController() : mixed
Return values
mixed
—
generateMiddleware()
public
generateMiddleware() : mixed
Return values
mixed
—
generateModel()
public
generateModel() : mixed
Return values
mixed
—
generateResource()
public
generateResource() : mixed
Return values
mixed
—
getCommandContent()
private
getCommandContent() : mixed
Return values
mixed
—
getControllerContent()
private
getControllerContent() : mixed
Return values
mixed
—
getMiddlewareContent()
private
getMiddlewareContent() : mixed
Return values
mixed
—
getModelContent()
private
getModelContent() : mixed
Return values
mixed
—