PHP Class Shopware\PluginCreator\Services\NameGenerator

Class NameGenerator
Afficher le fichier Open project: shopwarelabs/sw-cli-tools

Méthodes publiques

Свойство Type Description
$backendModelAlias e.g.promotion
$backendWidgetController e.g. SwagTestWidget
$camelCaseModel e.g. PromotionTest
$dash_js e.g. swag-promotion
$developerPrefix e.g. swag
$under_score_js e.g. swag_promotion
$under_score_model e.g. promotion_test

Méthodes publiques

Méthode Description
__construct ( Configuration $configuration )
generateNames ( ) Generate all needed names
getBackendModelAlias ( ) : string Determine the alias for the backend model
getModelName ( ) : mixed | string Return a proper model name
upperToArray ( $input ) : array Splits a given string by upper case characters

Method Details

__construct() public méthode

public __construct ( Configuration $configuration )
$configuration Shopware\PluginCreator\Struct\Configuration

generateNames() public méthode

Generate all needed names
public generateNames ( )

getBackendModelAlias() public méthode

Determine the alias for the backend model
public getBackendModelAlias ( ) : string
Résultat string

getModelName() public méthode

Return a proper model name
public getModelName ( ) : mixed | string
Résultat mixed | string

upperToArray() public méthode

Splits a given string by upper case characters
public upperToArray ( $input ) : array
$input
Résultat array

Property Details

$backendModelAlias public_oe property

e.g.promotion
public $backendModelAlias

$backendWidgetController public_oe property

e.g. SwagTestWidget
public $backendWidgetController

$camelCaseModel public_oe property

e.g. PromotionTest
public $camelCaseModel

$dash_js public_oe property

e.g. swag-promotion
public $dash_js

$developerPrefix public_oe property

e.g. swag
public $developerPrefix

$under_score_js public_oe property

e.g. swag_promotion
public $under_score_js

$under_score_model public_oe property

e.g. promotion_test
public $under_score_model