-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathTaxRateEntityInterface.php
More file actions
80 lines (70 loc) · 1.82 KB
/
TaxRateEntityInterface.php
File metadata and controls
80 lines (70 loc) · 1.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?php
namespace CommerceGuys\Tax\Model;
use Doctrine\Common\Collections\Collection;
interface TaxRateEntityInterface extends TaxRateInterface
{
/**
* Sets the tax type.
*
* @param TaxTypeEntityInterface|null $type The tax type.
*
* @return self
*/
public function setType(TaxTypeEntityInterface $type = null);
/**
* Sets the tax rate id.
*
* @param string $id The tax rate id.
*
* @return self
*/
public function setId($id);
/**
* Sets the tax rate name.
*
* @param string $name The tax rate name.
*
* @return self
*/
public function setName($name);
/**
* Sets whether the tax rate is the default for its tax type.
*
* @param bool $default Whether the tax rate is the default.
*
* @return self
*/
public function setDefault($default);
/**
* Sets the tax rate amounts.
*
* @param TaxRateAmountEntityInterface[] $amounts The tax rate amounts.
*
* @return self
*/
public function setAmounts(Collection $amounts);
/**
* Adds a tax rate amount.
*
* @param TaxRateAmountEntityInterface $amount The tax rate amount.
*
* @return self
*/
public function addAmount(TaxRateAmountEntityInterface $amount);
/**
* Removes a tax rate amount.
*
* @param TaxRateAmountEntityInterface $amount The tax rate amount.
*
* @return self
*/
public function removeAmount(TaxRateAmountEntityInterface $amount);
/**
* Checks whether the tax rate has a tax rate amount.
*
* @param TaxRateAmountEntityInterface $amount The tax rate amount.
*
* @return bool True if the tax rate amount was found, false otherwise.
*/
public function hasAmount(TaxRateAmountEntityInterface $amount);
}