mirror of
https://github.com/danog/psalm-plugin-laravel.git
synced 2024-11-30 04:39:01 +01:00
20 lines
348 B
PHP
20 lines
348 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Tests\Psalm\LaravelPlugin\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\MorphTo;
|
|
|
|
final class Image extends Model
|
|
{
|
|
/**
|
|
* Get the owning imageable model.
|
|
*/
|
|
public function imageable(): MorphTo
|
|
{
|
|
return $this->morphTo();
|
|
}
|
|
}
|