| Total Complexity | 2 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class TimelineRequest extends ServiceRequest |
||
| 8 | { |
||
| 9 | /** @var string */ |
||
| 10 | protected $sorting; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * TimelineRequest constructor. |
||
| 14 | * |
||
| 15 | * @param string $sorting = 'recent' Timeline sorting. |
||
| 16 | * @param int $count = 20 Timeline entries count. |
||
| 17 | * @param int $offset = 0 Timline entries offset. |
||
| 18 | */ |
||
| 19 | public function __construct(string $sorting = 'recent', int $count = 20, int $offset = 0) |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Get sorting type for the current request. |
||
| 28 | * |
||
| 29 | * @return string |
||
| 30 | */ |
||
| 31 | public function getSorting() |
||
| 36 |