File tree Expand file tree Collapse file tree 4 files changed +24
-0
lines changed Expand file tree Collapse file tree 4 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,11 @@ public function getId()
85
85
return $ this ->id ;
86
86
}
87
87
88
+ public function setId (int $ id ): void
89
+ {
90
+ $ this ->id = $ id ;
91
+ }
92
+
88
93
/**
89
94
* @return string
90
95
*/
Original file line number Diff line number Diff line change @@ -28,6 +28,8 @@ interface PlanInterface extends EntityInterface
28
28
*/
29
29
public function getId ();
30
30
31
+ public function setId (int $ id ): void ;
32
+
31
33
/**
32
34
* Globally unique ID.
33
35
* @return int|string
@@ -38,15 +40,20 @@ public function getUniqueId();
38
40
* @return PriceInterface[]
39
41
*/
40
42
public function getPrices (): array ;
43
+
41
44
public function hasPrices (): bool ;
42
45
43
46
/**
44
47
* @param PriceInterface[] $prices
45
48
* @throws CannotReassignException when prices are already set
46
49
*/
47
50
public function setPrices (array $ prices ): void ;
51
+
48
52
public function getSeller (): ?CustomerInterface ;
53
+
49
54
public function getName (): string ;
55
+
50
56
public function setName (string $ name ): void ;
57
+
51
58
public function getType (): ?TypeInterface ;
52
59
}
Original file line number Diff line number Diff line change @@ -42,4 +42,6 @@ public function findByIds(array $ids);
42
42
* @throws EntityNotFoundException
43
43
*/
44
44
public function getById (int $ id ): PlanInterface ;
45
+
46
+ public function save (PlanInterface $ action ): void ;
45
47
}
Original file line number Diff line number Diff line change 11
11
12
12
namespace hiqdev \php \billing \tools ;
13
13
14
+ use hiqdev \php \billing \action \ActionInterface ;
15
+ use hiqdev \php \billing \plan \PlanInterface ;
16
+ use hiqdev \php \billing \sale \SaleInterface ;
17
+
14
18
/**
15
19
* @author Andrii Vasyliev <sol@hiqdev.com>
16
20
*/
@@ -20,4 +24,10 @@ interface FactoryInterface
20
24
* Create billing object by entity name and data.
21
25
*/
22
26
public function create (string $ entity , $ data );
27
+
28
+ public function getSale ($ data ): SaleInterface ;
29
+
30
+ public function getAction ($ data ): ActionInterface ;
31
+
32
+ public function getPlan ($ data ): PlanInterface ;
23
33
}
You can’t perform that action at this time.
0 commit comments