Modern PHP is really nice to work with. I uploaded the sample code from my book on Github if you want to have a look (check inside the src directory).
https://github.com/PatrickLouys/professional-php-sample-code
40 karma · joined June 1, 2017
https://github.com/PatrickLouys/professional-php-sample-code
http://php.net/manual/en/functions.arguments.php#functions.a...
Implementing Domain Driven Design