ContentBlockInterface
extends
Serializable
in
ContentBlock Interface
Table of Contents
Methods
- __construct() : mixed
- __toString() : string
- addBlock() : $this
- build() : void
- create() : static
- fromArray() : ContentBlockInterface
- getChecksum() : string
- getId() : string
- getToken() : string
- setChecksum() : $this
- setContent() : $this
- toArray() : array<string|int, mixed>
- toString() : string
Methods
__construct()
public
__construct([string|null $id = null ]) : mixed
Parameters
- $id : string|null = null
__toString()
public
__toString() : string
Return values
stringaddBlock()
public
addBlock(ContentBlockInterface $block) : $this
Parameters
- $block : ContentBlockInterface
Return values
$thisbuild()
public
build(array<string|int, mixed> $serialized) : void
Parameters
- $serialized : array<string|int, mixed>
create()
public
static create([string|null $id = null ]) : static
Parameters
- $id : string|null = null
Return values
staticfromArray()
public
static fromArray(array<string|int, mixed> $serialized) : ContentBlockInterface
Parameters
- $serialized : array<string|int, mixed>
Return values
ContentBlockInterfacegetChecksum()
public
getChecksum() : string
Return values
stringgetId()
public
getId() : string
Return values
stringgetToken()
public
getToken() : string
Return values
stringsetChecksum()
public
setChecksum(string $checksum) : $this
Parameters
- $checksum : string
Return values
$thissetContent()
public
setContent(string $content) : $this
Parameters
- $content : string
Return values
$thistoArray()
public
toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>toString()
public
toString() : string