| 1 | <?php |
||
| 8 | class Article 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/article'; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @see Swader\Diffbot\Entity\Article::getSentiment() |
||
| 17 | * @param bool|mixed $bool |
||
| 18 | * @return $this |
||
| 19 | */ |
||
| 20 | 1 | public function setSentiment($bool) |
|
| 26 | |||
| 27 | /** |
||
| 28 | * If set to false, Diffbot will not auto-concat several pages of a |
||
| 29 | * multi-page article into one. Defaults to true, max 20 pages. |
||
| 30 | * |
||
| 31 | * @see http://support.diffbot.com/automatic-apis/handling-multiple-page-articles/ |
||
| 32 | * @param bool $bool |
||
| 33 | * @return $this |
||
| 34 | */ |
||
| 35 | 2 | public function setPaging($bool = true) |
|
| 41 | |||
| 42 | /** |
||
| 43 | * Set the maximum number of automatically-generated tags to return. |
||
| 44 | * By default a maximum of five tags will be returned. |
||
| 45 | * @param int $max |
||
| 46 | * @return $this |
||
| 47 | */ |
||
| 48 | 2 | public function setMaxTags($max = 5) |
|
| 54 | |||
| 55 | /** |
||
| 56 | * If set to false, will not extract article comments in a Discussion |
||
| 57 | * entity embedded in the Article entity. By default, it will. |
||
| 58 | * @param bool $bool |
||
| 59 | * @return $this |
||
| 60 | */ |
||
| 61 | 2 | public function setDiscussion($bool = true) |
|
| 67 | } |
||
| 68 |