StarterTaxApplicationService.php
83 lines
| 1 | <?php |
| 2 | |
| 3 | namespace AmeliaBooking\Application\Services\Tax; |
| 4 | |
| 5 | use AmeliaBooking\Domain\Collection\Collection; |
| 6 | use AmeliaBooking\Domain\Entity\Tax\Tax; |
| 7 | use Slim\Exception\ContainerValueNotFoundException; |
| 8 | |
| 9 | /** |
| 10 | * Class StarterTaxApplicationService |
| 11 | * |
| 12 | * @package AmeliaBooking\Application\Services\Tax |
| 13 | */ |
| 14 | class StarterTaxApplicationService extends AbstractTaxApplicationService |
| 15 | { |
| 16 | /** |
| 17 | * @param Tax $tax |
| 18 | * |
| 19 | * @return boolean |
| 20 | * |
| 21 | * @throws ContainerValueNotFoundException |
| 22 | */ |
| 23 | public function add($tax) |
| 24 | { |
| 25 | return true; |
| 26 | } |
| 27 | |
| 28 | /** |
| 29 | * @param Tax $tax |
| 30 | * |
| 31 | * @return boolean |
| 32 | * |
| 33 | * @throws ContainerValueNotFoundException |
| 34 | */ |
| 35 | public function update($tax) |
| 36 | { |
| 37 | return true; |
| 38 | } |
| 39 | |
| 40 | /** |
| 41 | * @param Tax $tax |
| 42 | * |
| 43 | * @return boolean |
| 44 | * |
| 45 | * @throws ContainerValueNotFoundException |
| 46 | */ |
| 47 | public function delete($tax) |
| 48 | { |
| 49 | return true; |
| 50 | } |
| 51 | |
| 52 | /** |
| 53 | * @return Collection |
| 54 | */ |
| 55 | public function getAll() |
| 56 | { |
| 57 | return new Collection(); |
| 58 | } |
| 59 | |
| 60 | /** |
| 61 | * @param int $id |
| 62 | * @param string $type |
| 63 | * @param Collection $taxes |
| 64 | * |
| 65 | * @return string|null |
| 66 | */ |
| 67 | public function getTaxData($id, $type, $taxes) |
| 68 | { |
| 69 | return null; |
| 70 | } |
| 71 | |
| 72 | /** |
| 73 | * @param float $value |
| 74 | * @param Tax $tax |
| 75 | * |
| 76 | * @return float|string |
| 77 | */ |
| 78 | public function getBasePrice($value, $tax) |
| 79 | { |
| 80 | return $value; |
| 81 | } |
| 82 | } |
| 83 |