How is annotation useful in PHP?

前端 未结 4 2028
死守一世寂寞
死守一世寂寞 2020-12-04 17:49

How is annotation useful in PHP? and I don\'t mean PHPDoc generically.

I just want a real-world example or something, I guess.


So, according to @Max\'s

4条回答
  •  时光取名叫无心
    2020-12-04 18:14

    phpDocumentor and modern IDEs use annotations to determine method parameter types (@param), return values (@return) and so on.

    PhpUnit Testing use annotation to group tests, define dependencies.

提交回复
热议问题