Documentation

ContentBlockInterface extends Serializable

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

build()

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
static

setChecksum()

public setChecksum(string $checksum) : $this
Parameters
$checksum : string
Return values
$this

setContent()

public setContent(string $content) : $this
Parameters
$content : string
Return values
$this

toArray()

public toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results