mirror of
https://github.com/danog/psalm-plugin-laravel.git
synced 2024-12-11 16:49:47 +01:00
18 lines
359 B
PHP
18 lines
359 B
PHP
|
<?php declare(strict_types=1);
|
||
|
|
||
|
namespace Tests\Psalm\LaravelPlugin\Models;
|
||
|
|
||
|
use Illuminate\Database\Eloquent\Model;
|
||
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||
|
|
||
|
final class Comment extends Model
|
||
|
{
|
||
|
/**
|
||
|
* @psalm-return BelongsTo<Post>
|
||
|
*/
|
||
|
public function post(): BelongsTo
|
||
|
{
|
||
|
return $this->belongsTo(Post::class);
|
||
|
}
|
||
|
}
|