255], ['active', 'integer'], [['name'], 'unique'], ]; } /** * @inheritdoc */ public function attributeLabels(): array { 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 function isSystem(): bool { return $this->system == $this::SYSTEM_YES; } public static function find(): ModuleRecordQuery { return new ModuleRecordQuery(static::class); } }