src/entities/Language.php
public function edit($name, $slug, $locale, $alias, $icon): void
    {
        $this->name   = $name;
        $this->slug   = $slug;
        $this->locale = $locale;
        $this->alias  = $alias;
        $this->icon   = $icon;
        $this->updated_by = Yii::$app->user->identity->id;
    }
public function edit($name, $slug, $locale, $alias, $icon): void
    {
        $this->name   = $name;
        $this->slug   = $slug;
        $this->locale = $locale;
        $this->alias  = $alias;
        $this->icon   = $icon;
        $this->updated_by = Yii::$app->user->identity->id;
    }
public function edit ( $ name , $ slug , $ locale , $ alias , $ icon ) : void { $ this -> name = $ name ; $ this -> slug = $ slug ; $ this -> locale = $ locale ; $ this -> alias = $ alias ; $ this -> icon = $ icon ; $ this -> updated_by = Yii :: $ app -> user -> identity -> id ; }
Edit a language.
@param string $name
@param string $slug
@param string $locale
@param string $alias
@param string $icon
@return void
Edit a language .