1
0
mirror of https://github.com/flarum/core.git synced 2025-07-16 14:26:25 +02:00
Files
php-flarum/php-packages/phpstan/stubs/Illuminate/Database/MorphMany.stub
Matthew Kilgore 05aa62f70c feat: STUBS!
2021-12-01 17:36:36 -05:00

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();
}