Skip to content

Commit 77b71ad

Browse files
author
Tang, Yu(ytang1)
committed
Merge pull request #120 from magento-fearless-kiwis/develop
[FearlessKiwis] S42-A
2 parents dcad938 + 52e8a14 commit 77b71ad

File tree

220 files changed

+16717
-2133
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

220 files changed

+16717
-2133
lines changed

app/code/Magento/Bundle/Api/Data/LinkInterface.php

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,34 +16,74 @@ interface LinkInterface extends \Magento\Framework\Api\ExtensibleDataInterface
1616
*/
1717
public function getSku();
1818

19+
/**
20+
* Set linked product sku
21+
*
22+
* @param string $sku
23+
* @return $this
24+
*/
25+
public function setSku($sku);
26+
1927
/**
2028
* Get option id
2129
*
2230
* @return int|null
2331
*/
2432
public function getOptionId();
2533

34+
/**
35+
* Set option id
36+
*
37+
* @param int $optionId
38+
* @return $this
39+
*/
40+
public function setOptionId($optionId);
41+
2642
/**
2743
* Get qty
2844
*
2945
* @return float|null
3046
*/
3147
public function getQty();
3248

49+
/**
50+
* Set qty
51+
*
52+
* @param float $qty
53+
* @return $this
54+
*/
55+
public function setQty($qty);
56+
3357
/**
3458
* Get position
3559
*
3660
* @return int|null
3761
*/
3862
public function getPosition();
3963

64+
/**
65+
* Set position
66+
*
67+
* @param int $position
68+
* @return $this
69+
*/
70+
public function setPosition($position);
71+
4072
/**
4173
* Get is defined
4274
*
4375
* @return bool|null
4476
*/
4577
public function getIsDefined();
4678

79+
/**
80+
* Set is defined
81+
*
82+
* @param bool $isDefined
83+
* @return $this
84+
*/
85+
public function setIsDefined($isDefined);
86+
4787
/**
4888
* Get is default
4989
*
@@ -52,24 +92,56 @@ public function getIsDefined();
5292
*/
5393
public function getIsDefault();
5494

95+
/**
96+
* Set is default
97+
*
98+
* @param bool $isDefault
99+
* @return $this
100+
*/
101+
public function setIsDefault($isDefault);
102+
55103
/**
56104
* Get price
57105
*
58106
* @return float
59107
*/
60108
public function getPrice();
61109

110+
/**
111+
* Set price
112+
*
113+
* @param float $price
114+
* @return $this
115+
*/
116+
public function setPrice($price);
117+
62118
/**
63119
* Get price type
64120
*
65121
* @return int
66122
*/
67123
public function getPriceType();
68124

125+
/**
126+
* Set price type
127+
*
128+
* @param int $priceType
129+
* @return $this
130+
*/
131+
public function setPriceType($priceType);
132+
69133
/**
70134
* Get whether quantity could be changed
71135
*
72136
* @return int|null
73137
*/
74138
public function getCanChangeQuantity();
139+
140+
/**
141+
* Set whether quantity could be changed
142+
*
143+
* @param int $canChangeQuantity
144+
* @return $this
145+
*/
146+
public function setCanChangeQuantity($canChangeQuantity);
75147
}

app/code/Magento/Bundle/Api/Data/OptionInterface.php

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,45 +16,101 @@ interface OptionInterface extends \Magento\Framework\Api\ExtensibleDataInterface
1616
*/
1717
public function getOptionId();
1818

19+
/**
20+
* Set option id
21+
*
22+
* @param int $optionId
23+
* @return $this
24+
*/
25+
public function setOptionId($optionId);
26+
1927
/**
2028
* Get option title
2129
*
2230
* @return string|null
2331
*/
2432
public function getTitle();
2533

34+
/**
35+
* Set option title
36+
*
37+
* @param string $title
38+
* @return $this
39+
*/
40+
public function setTitle($title);
41+
2642
/**
2743
* Get is required option
2844
*
2945
* @return bool|null
3046
*/
3147
public function getRequired();
3248

49+
/**
50+
* Set whether option is required
51+
*
52+
* @param bool $required
53+
* @return $this
54+
*/
55+
public function setRequired($required);
56+
3357
/**
3458
* Get input type
3559
*
3660
* @return string|null
3761
*/
3862
public function getType();
3963

64+
/**
65+
* Set input type
66+
*
67+
* @param string $type
68+
* @return $this
69+
*/
70+
public function setType($type);
71+
4072
/**
4173
* Get option position
4274
*
4375
* @return int|null
4476
*/
4577
public function getPosition();
4678

79+
/**
80+
* Set option position
81+
*
82+
* @param int $position
83+
* @return $this
84+
*/
85+
public function setPosition($position);
86+
4787
/**
4888
* Get product sku
4989
*
5090
* @return string|null
5191
*/
5292
public function getSku();
5393

94+
/**
95+
* Set product sku
96+
*
97+
* @param string $sku
98+
* @return $this
99+
*/
100+
public function setSku($sku);
101+
54102
/**
55103
* Get product links
56104
*
57105
* @return \Magento\Bundle\Api\Data\LinkInterface[]|null
58106
*/
59107
public function getProductLinks();
108+
109+
/**
110+
* Set product links
111+
*
112+
* @param \Magento\Bundle\Api\Data\LinkInterface[] $productLinks
113+
* @return $this
114+
*/
115+
public function setProductLinks(array $productLinks = null);
60116
}

app/code/Magento/Bundle/Api/Data/OptionTypeInterface.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,26 @@ interface OptionTypeInterface extends \Magento\Framework\Api\ExtensibleDataInter
1515
*/
1616
public function getLabel();
1717

18+
/**
19+
* Set type label
20+
*
21+
* @param string $label
22+
* @return $this
23+
*/
24+
public function setLabel($label);
25+
1826
/**
1927
* Get type code
2028
*
2129
* @return string
2230
*/
2331
public function getCode();
32+
33+
/**
34+
* Set type code
35+
*
36+
* @param string $code
37+
* @return $this
38+
*/
39+
public function setCode($code);
2440
}

0 commit comments

Comments
 (0)