hashes = ITSEC_Modules::get_setting( 'file-change', 'expected_hashes', array() ); } /** * @inheritDoc */ public function supports_package( ITSEC_File_Change_Package $package ) { return $package instanceof ITSEC_File_Change_Package_System; } /** * @inheritDoc */ public function has_hash( $relative_path, ITSEC_File_Change_Package $package ) { return isset( $this->hashes[ $package->get_root_path() . $relative_path ] ); } /** * @inheritDoc */ public function hash_matches( $actual_hash, $relative_path, ITSEC_File_Change_Package $package ) { return $this->hashes[ $package->get_root_path() . $relative_path ] === $actual_hash; } }