<?php declare( strict_types=1 );

namespace FernleafSystems\Wordpress\Services\Utilities\Integrations\WpHashes\Malai;

class MalwareScanFileExclusions extends Base {

	public const API_ENDPOINT = 'file_scan_exclusions';

	/**
	 * @return array{php:array, js:array}
	 */
	public function retrieve() :array {
		$result = $this->query();
		return \is_array( $result ) ? \array_intersect_key( $result, \array_flip( [ 'php', 'js' ] ) ) : [];
	}
}