Markup
in package
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. At this way, we can generate unique IDs (md5) for each markup.
Table of Contents
Properties
Methods
- __toString() : mixed
- `toString`. Allow grouping with e.g. `array_unique`.
- getContent() : mixed
- Getter.
- getId() : mixed
- Getter.
- persist() : mixed
- Persist a markup in pool or return the existing one.
- __construct() : mixed
- C'tor.
Properties
$content
private
mixed
$content
$id
private
mixed
$id
Methods
__toString()
`toString`. Allow grouping with e.g. `array_unique`.
public
__toString() : mixed
Tags
getContent()
Getter.
public
getContent() : mixed
getId()
Getter.
public
getId() : mixed
persist()
Persist a markup in pool or return the existing one.
public
static persist(string $markup, HeadlessContentBlocker $blocker) : mixed
Parameters
- $markup : string
- $blocker : HeadlessContentBlocker
__construct()
C'tor.
private
__construct(string $id, string $content) : mixed
Parameters
- $id : string
- $content : string