Skip to content
Snippets Groups Projects
Commit 91688837 authored by Daniel Kurowski's avatar Daniel Kurowski
Browse files

Added usage examples to docblocks

parent b3f40019
No related branches found
No related tags found
1 merge request!11Allow customizations on scaffolded objects
Pipeline #33800 passed
......@@ -23,6 +23,10 @@ final class Scaffolding
/**
* Usage:
* ```php
* return Scaffolding::definitionsForPgTable(...);
* ```
* @return ClassDefinition[]
*/
public static function definitionsForPgTable(
......@@ -49,6 +53,14 @@ final class Scaffolding
}
/**
* Usage:
* ```php
* $builders = Scaffolding::buildersForPgTable(...);
* $builders->row()->decorate(...);
* return $builders->buildAll();
* ```
*/
public static function buildersForPgTable(
PostgresReflector $pgReflector,
TypeMapper $mapper,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment