203203 UnionType
204204};
205205use Flow \Types \Type \Types ;
206+ use Flow \Types \Value \HTMLDocument ;
206207use UnitEnum ;
207208
208209/**
@@ -1547,7 +1548,7 @@ function number_format(ScalarFunction|int|float $value, ScalarFunction|int $deci
15471548 * @return Entry<mixed>
15481549 */
15491550#[DocumentationDSL(module: Module::CORE , type: DSLType::DATA_FRAME )]
1550- function to_entry (string $ name , mixed $ data , EntryFactory $ entryFactory = new EntryFactory () ) : Entry
1551+ function to_entry (string $ name , mixed $ data , EntryFactory $ entryFactory ) : Entry
15511552{
15521553 return $ entryFactory ->create ($ name , $ data );
15531554}
@@ -1558,7 +1559,7 @@ function to_entry(string $name, mixed $data, EntryFactory $entryFactory = new En
15581559 * @param null|Schema $schema
15591560 */
15601561#[DocumentationDSL(module: Module::CORE , type: DSLType::DATA_FRAME )]
1561- function array_to_row (array $ data , EntryFactory $ entryFactory = new EntryFactory () , array |Partitions $ partitions = [], ?Schema $ schema = null ) : Row
1562+ function array_to_row (array $ data , EntryFactory $ entryFactory , array |Partitions $ partitions = [], ?Schema $ schema = null ) : Row
15621563{
15631564 $ entries = [];
15641565
@@ -1603,7 +1604,7 @@ function array_to_row(array $data, EntryFactory $entryFactory = new EntryFactory
16031604 * @param null|Schema $schema
16041605 */
16051606#[DocumentationDSL(module: Module::CORE , type: DSLType::DATA_FRAME )]
1606- function array_to_rows (array $ data , EntryFactory $ entryFactory = new EntryFactory () , array |Partitions $ partitions = [], ?Schema $ schema = null ) : Rows
1607+ function array_to_rows (array $ data , EntryFactory $ entryFactory , array |Partitions $ partitions = [], ?Schema $ schema = null ) : Rows
16071608{
16081609 $ partitions = \is_array ($ partitions ) ? new Partitions (...$ partitions ) : $ partitions ;
16091610
@@ -1957,6 +1958,15 @@ function json_schema(string $name, bool $nullable = false, ?Metadata $metadata =
19571958 return Definition::json ($ name , $ nullable , $ metadata );
19581959}
19591960
1961+ /**
1962+ * @return Definition<HTMLDocument>
1963+ */
1964+ #[DocumentationDSL(module: Module::CORE , type: DSLType::SCHEMA )]
1965+ function html_schema (string $ name , bool $ nullable = false , ?Metadata $ metadata = null ) : Definition
1966+ {
1967+ return Definition::html ($ name , $ nullable , $ metadata );
1968+ }
1969+
19601970/**
19611971 * @return Definition<\DOMDocument>
19621972 */
0 commit comments