| @@ 10-26 (lines=17) @@ | ||
| 7 | /** |
|
| 8 | * @link https://dev.twitter.com/rest/reference/get/users/lookup |
|
| 9 | */ |
|
| 10 | abstract class Lookup extends BaseRequest |
|
| 11 | { |
|
| 12 | const METHOD = 'GET'; |
|
| 13 | const ENDPOINT = '/users/lookup.json'; |
|
| 14 | ||
| 15 | public function __construct() |
|
| 16 | { |
|
| 17 | parent::__construct(self::METHOD, self::ENDPOINT); |
|
| 18 | } |
|
| 19 | ||
| 20 | public function excludeEntities(): Lookup |
|
| 21 | { |
|
| 22 | $this->parameters['include_entities'] = 'false'; |
|
| 23 | ||
| 24 | return $this; |
|
| 25 | } |
|
| 26 | } |
|
| 27 | ||
| @@ 10-26 (lines=17) @@ | ||
| 7 | /** |
|
| 8 | * @link https://dev.twitter.com/rest/reference/get/users/show |
|
| 9 | */ |
|
| 10 | abstract class Show extends BaseRequest |
|
| 11 | { |
|
| 12 | const METHOD = 'GET'; |
|
| 13 | const ENDPOINT = '/users/show.json'; |
|
| 14 | ||
| 15 | public function __construct() |
|
| 16 | { |
|
| 17 | parent::__construct(self::METHOD, self::ENDPOINT); |
|
| 18 | } |
|
| 19 | ||
| 20 | public function excludeEntities(): Show |
|
| 21 | { |
|
| 22 | $this->parameters['include_entities'] = 'false'; |
|
| 23 | ||
| 24 | return $this; |
|
| 25 | } |
|
| 26 | } |
|
| 27 | ||