1 | <?php |
||
8 | class Product extends Api |
||
9 | { |
||
10 | use StandardApi; |
||
11 | |||
12 | /** @var string API URL to which to send the request */ |
||
13 | protected $apiUrl = 'https://api.diffbot.com/v3/product'; |
||
14 | |||
15 | /** |
||
16 | * If set to false, will not extract article comments in a Discussion |
||
17 | * entity embedded in the Product entity. By default, it will. |
||
18 | * @param bool $bool |
||
19 | * @return $this |
||
20 | */ |
||
21 | 1 | public function setDiscussion($bool = true) |
|
27 | |||
28 | /** |
||
29 | * @see Swader\Diffbot\Entity\Product::getColors() |
||
30 | * @param bool|mixed $bool |
||
31 | * @return $this |
||
32 | */ |
||
33 | 2 | public function setColors($bool) |
|
39 | |||
40 | /** |
||
41 | * @see Swader\Diffbot\Entity\Product::getSize() |
||
42 | * @param bool|mixed $bool |
||
43 | * @return $this |
||
44 | */ |
||
45 | 2 | public function setSize($bool) |
|
51 | |||
52 | /** |
||
53 | * @see Swader\Diffbot\Entity\Product::isAvailable() |
||
54 | * @param bool|mixed $bool |
||
55 | * @return $this |
||
56 | */ |
||
57 | 2 | public function setAvailability($bool) |
|
63 | } |
||
64 |