04.
Adding More Columns
Keep on Learning!
If you liked what you've learned so far, dive in! Subscribe to get access to this tutorial plus video, code and script downloads.
If you liked what you've learned so far, dive in! Subscribe to get access to this tutorial plus video, code and script downloads.
Whoops, an error! Please, try again later.
4 Comments
Great, this symfony3 course is better for beginners like me than the symfony2 course, i tried the symfony2 first and it was a bit fast
Awesome! So glad - and thanks for the feedback :)
Hi teacher, when I create the getters and setters (with PHPStorm), comments with @param mixed $variable is created, what does mean? can I delete them? how I can disable that in PHPStorm?
Thanks!
Hey Juan,
This's a PHPDoc annotation, check it out here: https://www.phpdoc.org/docs... . You can totally delete it if you don't need, but probably you just want tweak it a bit, for example, change "mixed" to string if you know that the field always should be a string. First of all, it helps for other developers who will work with your code, because it's kind of documentation - developers will know that the value you pass to the method is supposed to be a *string*, not object, integer, etc. The second, which I love a lot, is that IDEs like PhpStorm start hinting you types of arguments for those functions, i.e. when you call this method - PhpStorm will hint you that the argument should be a string, integer, or whatever you in that annotation and even will show a warning if the type is not corresponded that annotation. So using those annotations is good, but sometimes it's redundant when you use typehints, because in this case PhpStorm can resolve it by itself.
Cheers!
"Houston: no signs of life"
Start the conversation!