255], ['active', 'integer'], [['name'], 'unique'], ]; } /** * @inheritdoc */ public function attributeLabels() { return [ 'id' => 'ID', 'name' => 'Name', 'class' => 'Class', 'type' => 'Type', ]; } public function isEnabled(): bool { return $this->active == $this::STATUS_ENABLED; } public function isDisabled(): bool { return $this->active == $this::STATUS_DISABLED; } public static function find(): ModuleRecordQuery { return new ModuleRecordQuery(static::class); } }