* @mixin \Illuminate\Database\Eloquent\Builder */ class HasOne extends HasOneOrMany { use SupportsDefaultModels; /** * @param \Illuminate\Database\Eloquent\Model $parent * @return \Illuminate\Database\Eloquent\Model * @psalm-return TRelatedModel */ public function newRelatedInstanceFor(Model $parent) { } }