<?php declare( strict_types=1 );

namespace FernleafSystems\Wordpress\Plugin\Shield\Modules\Plugin\Lib\MeterAnalysis\Component;

class ScanEnabledAfsAreaWpContent extends ScanEnabledAfsAreaBase {

	public const SLUG = 'scan_enabled_afs_wpcontent';
	public const WEIGHT = 2;

	protected function testIfProtected() :bool {
		return self::con()->comps->scans->AFS()->isScanEnabledWpContent();
	}

	public function title() :string {
		return __( 'WordPress WP Content Directory File Scanner', 'wp-simple-firewall' );
	}

	public function descProtected() :string {
		return __( 'Unrecognised files stored in the WordPress WP Content directory are scanned.', 'wp-simple-firewall' );
	}

	public function descUnprotected() :string {
		return __( "Unrecognised files stored in the WordPress WP Content directory aren't scanned.", 'wp-simple-firewall' );
	}
}