mirror of
https://github.com/flarum/framework.git
synced 2025-05-07 12:02:26 +08:00
25 lines
563 B
Plaintext
25 lines
563 B
Plaintext
<?php
|
|
|
|
namespace Illuminate\Database\Eloquent\Relations;
|
|
|
|
/**
|
|
* @template TRelatedModel of \Illuminate\Database\Eloquent\Model
|
|
*/
|
|
class Relation
|
|
{
|
|
/**
|
|
* Execute the query as a "select" statement.
|
|
*
|
|
* @param array<int, string> $columns
|
|
* @phpstan-return \Illuminate\Database\Eloquent\Collection<TRelatedModel>
|
|
*/
|
|
public function get($columns = ['*']);
|
|
|
|
|
|
/**
|
|
* @param array<model-property<TRelatedModel>, mixed> $attributes
|
|
* @phpstan-return TRelatedModel
|
|
*/
|
|
public function make(array $attributes = []);
|
|
}
|