\DevOwl\HeadlessContentBlockerMarkup

Statically hold all found markups (e.g. inline styles) in a single object instance to be memory-low instead of saving the markup string in each blocked result.

Summary

Methods
Properties
Constants
getId()
getContent()
__toString()
persist()
get()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
__construct()
$pool
$id
$content
N/A

Properties

$id

$id :

Type

$content

$content :

Type

Methods

getId()

getId()

Getter.

getContent()

getContent()

Getter.

__toString()

__toString()

`toString`. Allow grouping with e.g. `array_unique`.

persist()

persist(string  $markup)

Persist a markup in pool or return the existing one.

Parameters

string $markup

get()

get(string  $id)

Get the markup instance for a given ID (the MD5 hash of the markup).

Parameters

string $id

__construct()

__construct(string  $id,string  $content)

C'tor.

Parameters

string $id
string $content