1
0
mirror of https://github.com/flarum/core.git synced 2025-08-16 05:14:20 +02:00

feat: STUBS!

This commit is contained in:
Matthew Kilgore
2021-12-01 17:36:36 -05:00
parent c561897f1c
commit 05aa62f70c
35 changed files with 19100 additions and 3 deletions

View File

@@ -0,0 +1,27 @@
<?php
namespace Illuminate\Database\Eloquent\Relations;
/**
* @template TRelatedModel of \Illuminate\Database\Eloquent\Model
* @template TChildModel of \Illuminate\Database\Eloquent\Model
* @extends Relation<TRelatedModel>
*/
class BelongsTo extends Relation
{
/** @phpstan-return TChildModel */
public function associate();
/** @phpstan-return TChildModel */
public function dissociate();
/** @phpstan-return TChildModel */
public function getChild();
/**
* Get the results of the relationship.
*
* @phpstan-return ?TRelatedModel
*/
public function getResults();
}