PHP Класс Shopware\PluginCreator\Services\NameGenerator

Class NameGenerator
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$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

Открытые методы

Метод Описание
__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

Описание методов

__construct() публичный Метод

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

generateNames() публичный Метод

Generate all needed names
public generateNames ( )

getBackendModelAlias() публичный Метод

Determine the alias for the backend model
public getBackendModelAlias ( ) : string
Результат string

getModelName() публичный Метод

Return a proper model name
public getModelName ( ) : mixed | string
Результат mixed | string

upperToArray() публичный Метод

Splits a given string by upper case characters
public upperToArray ( $input ) : array
$input
Результат array

Описание свойств

$backendModelAlias публичное свойство

e.g.promotion
public $backendModelAlias

$backendWidgetController публичное свойство

e.g. SwagTestWidget
public $backendWidgetController

$camelCaseModel публичное свойство

e.g. PromotionTest
public $camelCaseModel

$dash_js публичное свойство

e.g. swag-promotion
public $dash_js

$developerPrefix публичное свойство

e.g. swag
public $developerPrefix

$under_score_js публичное свойство

e.g. swag_promotion
public $under_score_js

$under_score_model публичное свойство

e.g. promotion_test
public $under_score_model