| Total Complexity | 3 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | class MessagesRequest extends Request |
||
| 14 | { |
||
| 15 | protected $endpoint = 'messages'; |
||
| 16 | |||
| 17 | protected $response = Message::class; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * The parameter named "query" in the query string. |
||
| 21 | * |
||
| 22 | * It is encoded separately from the other parameters on the query string. |
||
| 23 | * |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | protected $query = ''; |
||
| 27 | |||
| 28 | public function __construct() |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Set the number of results returned per page. |
||
| 35 | * |
||
| 36 | * @param int $limit |
||
| 37 | * @return self |
||
| 38 | */ |
||
| 39 | public function limit($limit): self |
||
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Set the "query" parameter. |
||
| 46 | * |
||
| 47 | * @param string $query |
||
| 48 | * @return self |
||
| 49 | */ |
||
| 50 | public function query(string $query): self |
||
| 55 |