1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 05:14:04 +00:00
laravel-tips/content/tips/if-youre-returning-class-names-as-opposed-to-instances-you-can-use-the-class-name-docblock.md
2021-12-10 16:25:33 +01:00

634 B
Raw Permalink Blame History

title tweet_id thread_slug author_username images created_at slug
If you're returning class names (as opposed to instances), you can use the class-name docblock 1469321064668753921 weekly-thread-2021-49 freekmurze
https://pbs.twimg.com/media/FGFgPPKWYAoNJB9.jpg
2021-12-10T15:00:15+00:00 if-youre-returning-class-names-as-opposed-to-instances-you-can-use-the-class-name-docblock

If youre returning a fully qualified class name, you can use the class-name docblock. You can specify a base class or interface between <>

And of course, you can also return an array of class-names too 👍 #php