3.15.3
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
<?php
|
||||
|
||||
namespace WP_Rocket\Engine\Media\Lazyload\CSS\Data;
|
||||
|
||||
class ProtectedContent {
|
||||
|
||||
/**
|
||||
* Protected content.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $content = '';
|
||||
|
||||
/**
|
||||
* Mapping between protected files and their placeholder.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $protected_files_mapping = [];
|
||||
|
||||
/**
|
||||
* Set protected content.
|
||||
*
|
||||
* @param string $content Protected content.
|
||||
* @return void
|
||||
*/
|
||||
public function set_content( string $content ): void {
|
||||
$this->content = $content;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get protected content.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function get_content(): string {
|
||||
return $this->content;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set mapping between protected files and their placeholder.
|
||||
*
|
||||
* @param array $protected_files_mapping Mapping between protected files and their placeholder.
|
||||
* @return void
|
||||
*/
|
||||
public function set_protected_files_mapping( array $protected_files_mapping ): void {
|
||||
$this->protected_files_mapping = $protected_files_mapping;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get mapping between protected files and their placeholder.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function get_protected_files_mapping(): array {
|
||||
return $this->protected_files_mapping;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user