mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-18 10:07:12 +00:00
53 lines
1.4 KiB
PHP
53 lines
1.4 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GenerateMixinCollection\Models;
|
|
|
|
use Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GenerateMixinCollection\NonModels\CollectionModel;
|
|
use Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\GenerateMixinCollection\NonModels\NonModel;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Support\Collection;
|
|
use Illuminate\Support\Collection as IntCollection;
|
|
|
|
class WithCollection extends Model
|
|
{
|
|
// /**
|
|
// * @return Collection<int, string>
|
|
// */
|
|
// public function getCollectionAttribute(): Collection
|
|
// {
|
|
// return new Collection();
|
|
// }
|
|
//
|
|
// /**
|
|
// * @return Collection
|
|
// */
|
|
// public function getCollectionWithoutTemplateAttribute(): Collection
|
|
// {
|
|
// return new Collection();
|
|
// }
|
|
//
|
|
// public function getCollectionWithoutDocBlockAttribute(): Collection
|
|
// {
|
|
// return new Collection();
|
|
// }
|
|
//
|
|
// /**
|
|
// * @return Collection<int, NonModel>
|
|
// */
|
|
// public function getCollectionWithNonModelTemplateAttribute(): Collection
|
|
// {
|
|
// return new Collection();
|
|
// }
|
|
//
|
|
/**
|
|
* @return Collection<Collection, CollectionModel<IntCollection, CollectionModel<int, NonModel>>>
|
|
*/
|
|
public function getCollectionWithNestedTemplateAttribute(): Collection
|
|
{
|
|
return new Collection();
|
|
|
|
}
|
|
}
|