0 follower

Abstract Class Yiisoft\Yii\Gii\Generator\AbstractGeneratorCommand

InheritanceYiisoft\Yii\Gii\Generator\AbstractGeneratorCommand
ImplementsYiisoft\Yii\Gii\GeneratorCommandInterface
SubclassesYiisoft\Yii\Gii\Generator\ActiveRecord\Command, Yiisoft\Yii\Gii\Generator\Controller\Command

Protected Properties

Hide inherited properties

Property Type Description Defined By
$template string Yiisoft\Yii\Gii\Generator\AbstractGeneratorCommand

Property Details

Hide inherited properties

$template protected property
protected string $template 'default'

Method Details

Hide inherited methods

__construct() public method

public __construct( string $template 'default' ): mixed
$template string

                public function __construct(
    #[Required(message: 'A code template must be selected.')]
    #[TemplateRule]
    protected string $template = 'default',
) {
}

            
getAttributeLabels() public abstract static method
public abstract static getAttributeLabels( ): array<string, string>

                public static function getAttributeLabels(): array;

            
getAttributes() public abstract static method
public abstract static getAttributes( ): list<string>

                public static function getAttributes(): array;

            
getHints() public abstract static method
public abstract static getHints( ): array<string, string>

                public static function getHints(): array;

            
getTemplate() public method

public getTemplate( ): string

                public function getTemplate(): string
{
    return $this->template;
}