PluginProbe ʕ •ᴥ•ʔ
Booking for Appointments and Events Calendar – Amelia / 2.4.6
Booking for Appointments and Events Calendar – Amelia v2.4.6
2.4.7 2.4.6 2.4.5 2.4.4 2.4.3 2.4.2 2.4.1 2.4 trunk 1.2.1 1.2.10 1.2.11 1.2.12 1.2.13 1.2.14 1.2.15 1.2.16 1.2.17 1.2.18 1.2.19 1.2.2 1.2.20 1.2.21 1.2.22 1.2.23 1.2.24 1.2.25 1.2.26 1.2.27 1.2.28 1.2.29 1.2.3 1.2.30 1.2.31 1.2.32 1.2.33 1.2.34 1.2.35 1.2.36 1.2.37 1.2.38 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 2.0 2.0.1 2.0.2 2.1 2.1.1 2.1.2 2.1.3 2.2 2.2.1 2.3
ameliabooking / src / Application / Services / Tax / StarterTaxApplicationService.php
ameliabooking / src / Application / Services / Tax Last commit date
AbstractTaxApplicationService.php 7 months ago StarterTaxApplicationService.php 3 weeks ago
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