Files
librenms-librenms/database/factories/PortFactory.php
Jellyfrog e873768845 Bump larastan (#13071)
* Bump larastan

* Use php7.4 for lint test
2021-07-26 09:00:34 -05:00

33 lines
718 B
PHP

<?php
namespace Database\Factories;
use App\Models\Port;
use Illuminate\Database\Eloquent\Factories\Factory;
/** @extends Factory<Port> */
class PortFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = Port::class;
/**
* Define the model's default state.
*
* @return array
*/
public function definition()
{
return [
'ifIndex' => $this->faker->unique()->numberBetween(), /* @phpstan-ignore-line */
'ifName' => $this->faker->text(20),
'ifDescr' => $this->faker->text(255),
'ifLastChange' => $this->faker->unixTime(),
];
}
}