MetaFox

CodeGeneratorTrait

Trait PackageCommandTrait.

Tags
mixin

Command

Table of Contents

Properties

$transforms  : array<string|int, mixed>
$blockList  : array<string|int, string>

Methods

getArguments()  : array<string|int, mixed>
getTransforms()  : array<string|int, string>
saveDriversToFiles()  : mixed
translatePath()  : string
createModelNetworkStream()  : void
createModelPrivacyStream()  : void
createModelTagData()  : void
createModelText()  : void
ensureCategoryData()  : void
ensureEloquentModel()  : void
ensureEloquentModelFactory()  : void
ensureEloquentModelObserver()  : void
ensureEloquentModelPolicy()  : void
ensureEloquentModelTest()  : void
ensurePackageSettingsListener()  : void
ensureRepository()  : void
ensureResourceApiController()  : void
ensureResourceApiGateway()  : void
generateFormRequest()  : void
generateResourceSettings()  : void
generateResourceVariant()  : void
getHttpResourceReplacements()  : array<string, string>
getReplacements()  : array<string, mixed>
stripBasePath()  : string
translate()  : int
Execute the console command.
updateDrivers()  : mixed
generateForm()  : void

Properties

$blockList

protected array<string|int, string> $blockList = ['/PrivacyRepositoryInterface\\.php/', '/PrivacyStreamFactory\\.php/', '/PrivacyStreamTest\\.php/', '/PolicyTest\\.php/', '/TextTest\\.php/', '/CategoryEmbed\\.php/', '/CategoryEmbedCollection\\.php/', '/CategoryDataFactory\\.php/', '/CategoryDataTest\\.php/', '/TextFactory\\.php/', '/TextFactoryTest\\.php/', '/CategoryEmbedTest\\.php/', '/CategoryEmbedCollectionTest\\.php/', '/CategoryDataFactoryTest\\.php/', '/CategoryRepositoryTest\\.php/']

Methods

getArguments()

public getArguments() : array<string|int, mixed>
Return values
array<string|int, mixed>

getTransforms()

public getTransforms() : array<string|int, string>
Return values
array<string|int, string>

saveDriversToFiles()

public saveDriversToFiles(string $package) : mixed
Parameters
$package : string

translatePath()

public translatePath(string $path, array<string, mixed> $replacements) : string
Parameters
$path : string
$replacements : array<string, mixed>
Return values
string

createModelNetworkStream()

protected createModelNetworkStream(string $studlyName, string $table, string $entityType) : void
Parameters
$studlyName : string
$table : string
$entityType : string

createModelPrivacyStream()

protected createModelPrivacyStream(string $studlyName, string $table, string $entityType) : void
Parameters
$studlyName : string
$table : string
$entityType : string

createModelTagData()

protected createModelTagData(string $studlyName, string $table, string $entityType) : void
Parameters
$studlyName : string
$table : string
$entityType : string

createModelText()

protected createModelText(string $studlyName, string $table, string $entityType) : void
Parameters
$studlyName : string
$table : string
$entityType : string

ensureCategoryData()

protected ensureCategoryData(string $studlyName, string $table, string $entityType) : void
Parameters
$studlyName : string
$table : string
$entityType : string

ensureEloquentModel()

protected ensureEloquentModel(string $name[, array<string, mixed> $config = [] ]) : void
Parameters
$name : string
$config : array<string, mixed> = []

ensureEloquentModelFactory()

protected ensureEloquentModelFactory(string $name[, array<string, mixed> $config = [] ]) : void
Parameters
$name : string
$config : array<string, mixed> = []

ensureEloquentModelObserver()

protected ensureEloquentModelObserver(string $name[, array<string, mixed> $config = [] ]) : void
Parameters
$name : string
$config : array<string, mixed> = []

ensureEloquentModelPolicy()

protected ensureEloquentModelPolicy(string $name[, array<string, mixed> $config = [] ]) : void
Parameters
$name : string
$config : array<string, mixed> = []

ensureEloquentModelTest()

protected ensureEloquentModelTest(string $name[, array<string, mixed> $config = [] ]) : void
Parameters
$name : string
$config : array<string, mixed> = []
Tags
SuppressWarnings

(PHPMD.UnusedFormalParameter)

ensurePackageSettingsListener()

protected ensurePackageSettingsListener() : void

ensureRepository()

protected ensureRepository(string $name[, array<string, mixed> $config = [] ]) : void
Parameters
$name : string
$config : array<string, mixed> = []
Tags
SuppressWarnings

(PHPMD.UnusedFormalParameter)

ensureResourceApiController()

protected ensureResourceApiController(bool $admincp, string $name, string $version[, array<string, mixed> $config = [] ]) : void
Parameters
$admincp : bool
$name : string
$version : string
$config : array<string, mixed> = []

ensureResourceApiGateway()

protected ensureResourceApiGateway(bool $admincp, string $name, string $version[, array<string, mixed> $config = [] ]) : void
Parameters
$admincp : bool
$name : string
$version : string
$config : array<string, mixed> = []

generateFormRequest()

protected generateFormRequest(bool $admincp, string $name, string $action, string $version[, array<string, mixed> $config = [] ]) : void
Parameters
$admincp : bool
$name : string
$action : string
$version : string
$config : array<string, mixed> = []

generateResourceSettings()

protected generateResourceSettings(bool $admincp, string $name, string $variant, string $version[, array<string, mixed> $config = [] ]) : void
Parameters
$admincp : bool
$name : string
$variant : string
$version : string
$config : array<string, mixed> = []

generateResourceVariant()

protected generateResourceVariant(bool $admincp, string $name, string $variant, string $version[, array<string, mixed> $config = [] ]) : void
Parameters
$admincp : bool
$name : string
$variant : string
$version : string
$config : array<string, mixed> = []

getHttpResourceReplacements()

protected getHttpResourceReplacements(bool $admincp, string $name, string $version, string $action[, array<string, mixed> $config = [] ][, array<string, mixed> $extras = [] ]) : array<string, string>
Parameters
$admincp : bool
$name : string
$version : string
$action : string
$config : array<string, mixed> = []
$extras : array<string, mixed> = []
Tags
SuppressWarnings

(PHPMD.UnusedFormalParameter)

Return values
array<string, string>

getReplacements()

protected getReplacements([array<string, string> $customs = [] ]) : array<string, mixed>
Parameters
$customs : array<string, string> = []
Return values
array<string, mixed>

stripBasePath()

protected stripBasePath(string $path) : string
Parameters
$path : string
Return values
string

translate()

Execute the console command.

protected translate(string $saveTo, string|array<string|int, mixed> $stubs, array<string, mixed> $replacements) : int
Parameters
$saveTo : string
$stubs : string|array<string|int, mixed>
$replacements : array<string, mixed>
Tags
SuppressWarnings

(PHPMD.BooleanArgumentFlag)

Return values
int

updateDrivers()

protected updateDrivers(array<string|int, mixed> $params) : mixed
Parameters
$params : array<string|int, mixed>

generateForm()

private generateForm(bool $admincp, string $name, string $action, string $version, array<string, mixed> $config) : void
Parameters
$admincp : bool
$name : string
$action : string
$version : string
$config : array<string, mixed>

        
On this page

Search results