mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-18 18:13:11 +00:00
* tests: be more systematic when testing discrete column types Still not covering all due to SQLite limitation * tests: relations of models * tests: model in another namespace gets correctly qualified * tests: cover SoftDeletes trait * tests: cover some variants of getter
58 lines
1.1 KiB
PHP
58 lines
1.1 KiB
PHP
<?php declare(strict_types=1);
|
|
|
|
namespace Barryvdh\LaravelIdeHelper\Tests\Console\ModelsCommand\Getter\Models;
|
|
|
|
use DateTime;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Simple extends Model
|
|
{
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getAttributeWithIntReturnPhpdocAttribute()
|
|
{
|
|
}
|
|
|
|
public function getAttributeWithIntReturnTypeAttribute(): int
|
|
{
|
|
}
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getAttributeWithIntReturnTypeAndPhpdocAttribute(): int
|
|
{
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getAttributeWithIntReturnTypeAndButPhpdocStringAttribute(): int
|
|
{
|
|
}
|
|
|
|
public function getAttributeWithoutTypeAttribute()
|
|
{
|
|
}
|
|
|
|
/**
|
|
* @return what|ever|we-write/here
|
|
*/
|
|
public function getAttributeTakesPhpdocLiteralAttribute()
|
|
{
|
|
}
|
|
|
|
public function getAttributeReturnTypeIntOrNullAttribute(): ?int
|
|
{
|
|
}
|
|
|
|
public function getAttributeReturnsImportedClass(): DateTime
|
|
{
|
|
}
|
|
|
|
public function getAttributeReturnsFqnClass(): \Illuminate\Support\Facades\Date
|
|
{
|
|
}
|
|
}
|