Calculates number of vacation days for dummy employees defined in src/data/employees.php
I tried to realize this task following DDD concept, Strategy pattern and SOLID principles.
In my implementation if employee has special contract, contract vacation days overwrites bonus days added for age over 30. For example, if I have a special contract with 28 vacation days and my age is 45, I will have 28 vacation days.
PHP 7.2+ Composer
Run from this folder
composer install
Run calculator.php specifying a year:
php calculator.php 2019
vendor/bin/phpunit tests