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 mixed __construct ( string $template 'default' )
$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 array getAttributeLabels ( )

                public static function getAttributeLabels(): array;

            
getAttributes() public abstract static method
public abstract static list getAttributes ( )

                public static function getAttributes(): array;

            
getHints() public abstract static method
public abstract static array getHints ( )

                public static function getHints(): array;

            
getTemplate() public method

public string getTemplate ( )

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