$definitions
$definitions : array
The model definitions in the container.
__construct(string $class, string $name, array $definitions, array $states, array $afterMaking, array $afterCreating, \Faker\Generator $faker) : void
Create an new builder instance.
string | $class | |
string | $name | |
array | $definitions | |
array | $states | |
array | $afterMaking | |
array | $afterCreating | |
\Faker\Generator | $faker |
makeInstance(array $attributes = array()) : \think\Model
Make an instance of the model with the given attributes.
array | $attributes |
callAfterCallbacks(array $afterCallbacks, \think\Model $model, string $state) : void
Call after callbacks for each model and state.
array | $afterCallbacks | |
\think\Model | $model | |
string | $state |