🌱 php standards
http://www.php-fig.org/psr/#accepted
Code
Code should indicate what is happening, comments should indicate why
Tests
Unit test coverage should be 100% for domain logic.
Functional, integration and acceptance testing ensure the application is working correctly
Code Review
https://www.kevinlondon.com/2015/05/05/code-review-best-practices.html
Notes
methods : functions of a class
Called immediately
__construct()
Encapsulation (private, protected)
Hide as much behavior as you can.
Static == think share, namespaces but globally accessible functions
Constant == never ever change
Program to an interface not to an implementation.
If you are checking an object type you need to use poly-morphism