PHP Класс League\FactoryMuffin\Generators\EntityGenerator
The entity generator can be useful for setting up relationships between
models. The entity generator will create and return the generated model.
Показать файл
Открыть проект
Примеры использования класса
Открытые методы
Приватные методы
Описание методов
__construct()
публичный Метод
Create a new factory generator instance.
public __construct ( string $kind, object $model, FactoryMuffin $factoryMuffin ) : void |
$kind |
string |
The kind of attribute. |
$model |
object |
The model instance. |
$factoryMuffin |
League\FactoryMuffin\FactoryMuffin |
The factory muffin instance. |
Результат |
void |
|
generate()
публичный Метод
The value returned is the id of the generated model, if applicable.
getPrefix()
публичный статический Метод
Get the generator prefix.