AbstractDepositApplicationService.php
36 lines
| 1 | <?php |
| 2 | |
| 3 | namespace AmeliaBooking\Application\Services\Deposit; |
| 4 | |
| 5 | use AmeliaBooking\Domain\Entity\Bookable\AbstractBookable; |
| 6 | use AmeliaBooking\Infrastructure\Common\Container; |
| 7 | |
| 8 | /** |
| 9 | * Class AbstractDepositApplicationService |
| 10 | * |
| 11 | * @package AmeliaBooking\Application\Services\Deposit |
| 12 | */ |
| 13 | abstract class AbstractDepositApplicationService |
| 14 | { |
| 15 | protected $container; |
| 16 | |
| 17 | /** |
| 18 | * AbstractDepositApplicationService constructor. |
| 19 | * |
| 20 | * @param Container $container |
| 21 | */ |
| 22 | public function __construct(Container $container) |
| 23 | { |
| 24 | $this->container = $container; |
| 25 | } |
| 26 | |
| 27 | /** |
| 28 | * @param float $paymentAmount |
| 29 | * @param AbstractBookable $bookable |
| 30 | * @param int $persons |
| 31 | * |
| 32 | * @return float |
| 33 | */ |
| 34 | abstract public function calculateDepositAmount($paymentAmount, $bookable, $persons); |
| 35 | } |
| 36 |