BlockMaker
class BlockMaker (View source)
Properties
protected Filesystem | $files | ||
protected Command | $command | ||
protected Block | $blockBase | ||
protected | $icon |
Methods
__construct(Filesystem $files)
No description
getBlockCollection()
No description
mixed
make($blockName, $baseName, $iconName)
Make a new block.
bool
checkBlockStub($baseName)
No description
bool
checkIconFile($iconName)
No description
bool
checkBlockFile($blockFile)
No description
checkBlockBaseFormat($stubFileName)
No description
checkRepeaters($repeaters)
No description
string|string[]|null
makeBlock($blockName, $iconName, $stubFileName = null, null|string $stub = null)
No description
string
makeBlockIdentifier($blockName)
No description
string
makeBlockPath(string $blockIdentifier, string $type = 'block')
No description
string
makeBlockTitle($string)
No description
mixed
getBlockByName($block, array $sources = [])
No description
mixed
getIconFile($icon, $addExtension = true)
No description
Collection
generateRepeaters($baseName, $blockName, $blockBase)
No description
array
createRepeater($repeaterName, $baseName, $blockName, $blockBase, $blockString)
No description
put($filePath, $contents)
No description
bool
saveAllFiles($blockName, string $blockFile, Collection $repeaters, string $blockIdentifier)
No description
setCommand(Command $command)
No description
info($message)
No description
error($message)
No description
Details
__construct(Filesystem $files)
No description
BlockCollection
getBlockCollection()
No description
mixed
make($blockName, $baseName, $iconName)
Make a new block.
protected bool
checkBlockStub($baseName)
No description
protected bool
checkIconFile($iconName)
No description
protected bool
checkBlockFile($blockFile)
No description
protected
checkBlockBaseFormat($stubFileName)
No description
protected
checkRepeaters($repeaters)
No description
string|string[]|null
makeBlock($blockName, $iconName, $stubFileName = null, null|string $stub = null)
No description
protected string
makeBlockIdentifier($blockName)
No description
protected string
makeBlockPath(string $blockIdentifier, string $type = 'block')
No description
string
makeBlockTitle($string)
No description
mixed
getBlockByName($block, array $sources = [])
No description
mixed
getIconFile($icon, $addExtension = true)
No description
Collection
generateRepeaters($baseName, $blockName, $blockBase)
No description
array
createRepeater($repeaterName, $baseName, $blockName, $blockBase, $blockString)
No description
put($filePath, $contents)
No description
protected bool
saveAllFiles($blockName, string $blockFile, Collection $repeaters, string $blockIdentifier)
No description
BlockMaker
setCommand(Command $command)
No description
info($message)
No description
error($message)
No description