src/generator/Gallery.php 1 location
|
@@ 36-45 (lines=10) @@
|
| 33 |
|
* |
| 34 |
|
* @param \samsoncms\api\generator\metadata\Gallery $metadata Entity metadata |
| 35 |
|
*/ |
| 36 |
|
protected function createDefinition($metadata) |
| 37 |
|
{ |
| 38 |
|
$this->generator |
| 39 |
|
->multiComment(array( |
| 40 |
|
'Class for rendering "' . $metadata->realName . '" gallery', |
| 41 |
|
)) |
| 42 |
|
->defClass($metadata->entity, '\\'.\samsoncms\api\Gallery::class) |
| 43 |
|
->newLine('use \\'.\samsoncms\api\Renderable::class.';') |
| 44 |
|
->newLine(); |
| 45 |
|
} |
| 46 |
|
|
| 47 |
|
/** |
| 48 |
|
* Class constructor generation part. |
src/generator/Row.php 1 location
|
@@ 39-48 (lines=10) @@
|
| 36 |
|
* |
| 37 |
|
* @param Virtual $metadata Entity metadata |
| 38 |
|
*/ |
| 39 |
|
protected function createDefinition($metadata) |
| 40 |
|
{ |
| 41 |
|
$this->generator |
| 42 |
|
->multiComment(array( |
| 43 |
|
'Class for rendering "' . $metadata->entityRealName . '" row', |
| 44 |
|
)) |
| 45 |
|
->defClass($this->className, '\\'.\samsoncms\api\field\Row::class) |
| 46 |
|
->newLine('use \\'.\samsoncms\api\Renderable::class.';') |
| 47 |
|
->newLine(); |
| 48 |
|
} |
| 49 |
|
} |
| 50 |
|
|
src/generator/Table.php 1 location
|
@@ 52-61 (lines=10) @@
|
| 49 |
|
* |
| 50 |
|
* @param Virtual $metadata Entity metadata |
| 51 |
|
*/ |
| 52 |
|
protected function createDefinition($metadata) |
| 53 |
|
{ |
| 54 |
|
$this->generator |
| 55 |
|
->multiComment(array( |
| 56 |
|
'Class for rendering "' . $metadata->entityRealName . '" table', |
| 57 |
|
)) |
| 58 |
|
->defClass($this->className, '\\'.\samsoncms\api\field\Table::class) |
| 59 |
|
->newLine('use \\'.\samsoncms\api\Renderable::class.';') |
| 60 |
|
->newLine(); |
| 61 |
|
} |
| 62 |
|
|
| 63 |
|
/** |
| 64 |
|
* Class constants generation part. |