This repository contains the code to demonstrated during PHP Reboot meet-up on Understanding OOPs under Code Quality Meet-up series.
Video and slides of meet-up are available online:
- Videos: https://youtu.be/uVJtkgEr5Sk
- Slides: https://speakerdeck.com/kapilsharma/code-quality-series-1-understanding-oops-concepts
We want to build a calculator that receives two numbers and does an operation.
We do not know which kind of operations we want to do yet, we will get them in the future (future business requirements) and this calculator may have really complex operations.
Current planned operations are:
- Sum
- VAT (amount, vat rate)
Different team will be adding parallel operations to this calculator so it must be easily extendable and using dependency injection.