mirror of
https://github.com/danog/psalm-plugin-laravel.git
synced 2024-12-13 01:27:25 +01:00
57 lines
1.3 KiB
Plaintext
57 lines
1.3 KiB
Plaintext
<?php
|
|
|
|
namespace Illuminate\Database\Eloquent;
|
|
|
|
use Faker\Generator as Faker;
|
|
use InvalidArgumentException;
|
|
use Illuminate\Support\Traits\Macroable;
|
|
|
|
/**
|
|
* @template TModel of \Illuminate\Database\Eloquent\Model
|
|
* @template TCount of int
|
|
*/
|
|
class FactoryBuilder
|
|
{
|
|
use Macroable;
|
|
|
|
/**
|
|
* Create an new builder instance.
|
|
*
|
|
* @param class-string<TModel> $class
|
|
* @param string $name
|
|
* @param array $definitions
|
|
* @param array $states
|
|
* @param array $afterMaking
|
|
* @param array $afterCreating
|
|
* @param \Faker\Generator $faker
|
|
* @return void
|
|
*/
|
|
public function __construct($class, $name, array $definitions, array $states,
|
|
array $afterMaking, array $afterCreating, Faker $faker)
|
|
{
|
|
|
|
}
|
|
|
|
/**
|
|
* Create a collection of models and persist them to the database.
|
|
*
|
|
* @param array $attributes
|
|
* @return (TCount is 1 ? TModel : \Illuminate\Database\Eloquent\Collection<TModel>)
|
|
*/
|
|
public function create(array $attributes = [])
|
|
{
|
|
|
|
}
|
|
|
|
/**
|
|
* Create a collection of models.
|
|
*
|
|
* @param array $attributes
|
|
* @return (TCount is 1 ? TModel : \Illuminate\Database\Eloquent\Collection<TModel>)
|
|
*/
|
|
public function make(array $attributes = [])
|
|
{
|
|
|
|
}
|
|
}
|