Add templates to Eloquent (#1634)

This commit is contained in:
Barry vd. Heuvel
2024-12-28 11:17:17 +01:00
committed by GitHub
parent a25b947851
commit c33eacdefc
3 changed files with 31 additions and 2 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ namespace <?= $namespace === '__root' ? '' : trim($namespace, '\\') ?> {
namespace <?= $namespace === '__root' ? '' : trim($namespace, '\\') ?> {
<?php foreach ($aliases as $alias) : ?>
<?php if ($alias->getExtendsNamespace() === '\Illuminate\Database\Eloquent') : ?>
/** @template TModel of static */
<?= $alias->getPhpDocTemplates(' ') ?>
<?php endif?>
<?= $alias->getClassType() ?> <?= $alias->getShortName() ?> extends <?= $alias->getExtends() ?> {<?php if ($alias->getExtendsNamespace() === '\Illuminate\Database\Eloquent') : ?>
<?php foreach ($alias->getMethods() as $method) : ?>