mirror of
https://github.com/flarum/core.git
synced 2025-07-16 06:16:23 +02:00
25 lines
580 B
Plaintext
25 lines
580 B
Plaintext
<?php
|
|
|
|
namespace Illuminate\Database\Eloquent\Relations;
|
|
|
|
/**
|
|
* @template TRelatedModel of \Illuminate\Database\Eloquent\Model
|
|
* @extends MorphOneOrMany<TRelatedModel>
|
|
*/
|
|
class MorphMany extends MorphOneOrMany
|
|
{
|
|
/**
|
|
* @param array<model-property<TRelatedModel>, mixed> $attributes
|
|
*
|
|
* @phpstan-return TRelatedModel
|
|
*/
|
|
public function create(array $attributes = []);
|
|
|
|
/**
|
|
* Get the results of the relationship.
|
|
*
|
|
* @phpstan-return \Illuminate\Database\Eloquent\Collection<TRelatedModel>
|
|
*/
|
|
public function getResults();
|
|
}
|