Flow PHP

XmlElementPhysical implements Physical

Read onlyYes
FinalYes

A \Dom\Element (PHP 8.4) is stored by its markup too and reads back as the DOMElement XMLElementType::cast() builds from a string.

Interfaces

Physical

Methods

__construct()  : mixed
canonical()  : string
fromPhysical()  : mixed
fromPhysicalAll()  : array<int, mixed>
markup()  : string
toPhysical()  : mixed

Methods

canonical()

public canonical(DOMElement|Element $element) : string
Parameters
$element : DOMElement|Element
Return values
string

fromPhysical()

public fromPhysical(mixed $physical) : mixed
Parameters
$physical : mixed

never null

fromPhysicalAll()

public fromPhysicalAll(array<string|int, mixed> $physicals) : array<int, mixed>
Parameters
$physicals : array<string|int, mixed>

nulls stay null

Return values
array<int, mixed>

markup()

public markup(string $physical) : string
Parameters
$physical : string
Return values
string

toPhysical()

public toPhysical(mixed $value) : mixed
Parameters
$value : mixed

already cast by the column's Type, never null

On this page

Search results