mirror of
https://github.com/jikan-me/jikan-rest.git
synced 2025-02-20 11:23:35 +08:00
19 lines
624 B
PHP
19 lines
624 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use Illuminate\Support\Collection;
|
|
|
|
interface MediaModelFactory
|
|
{
|
|
public function overrideFromQueryStringParameters(array $additionalParams, bool $doOpposite = false): self;
|
|
|
|
/**
|
|
* Helper function to create records in db in sequential order.
|
|
* The records are created with an increasing value for the specified field.
|
|
* @param string $orderByField The field to order items by. Used to generate increasing value for the field.
|
|
* @return Collection The created items/records
|
|
*/
|
|
public function createManyWithOrder(string $orderByField): Collection;
|
|
}
|