mirror of
https://github.com/flarum/framework.git
synced 2025-06-03 06:13:07 +08:00
28 lines
627 B
Plaintext
28 lines
627 B
Plaintext
<?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();
|
|
}
|