GoodsInfoItem.php
843 字节
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
<?php
namespace Lackoxygen\Customs\Request\Struct;
use Lackoxygen\Customs\Utils\Collection;
class GoodsInfoItem extends Collection
{
/**
* @return string
*/
public function getGname()
{
return $this->mGet(__FUNCTION__);
}
/**
* @param string 商品名称
*/
public function setGname(): void
{
$this->mSet(__FUNCTION__, (string)func_get_arg(0));
}
/**
* @return mixed
*/
public function getItemLink()
{
return $this->mGet(__FUNCTION__);
}
/**
* @param string 商品展示链接地址
*/
public function setItemLink(): void
{
$itemLink = func_get_arg(0);
if (!empty($itemLink)) {
$itemLink = urlencode($itemLink);
}
$this->mSet(__FUNCTION__, (string)$itemLink);
}
}