| Total Complexity | 3 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class ThreadRequest extends AbstractRequest implements BodyRequestInterface |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var \Kerox\Messenger\Model\ThreadControl |
||
| 15 | */ |
||
| 16 | protected $threadControl; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * TagRequest constructor. |
||
| 20 | * |
||
| 21 | * @param string $path |
||
| 22 | * @param ThreadControl $threadControl |
||
| 23 | */ |
||
| 24 | 6 | public function __construct(string $path, ThreadControl $threadControl) |
|
| 25 | { |
||
| 26 | 6 | parent::__construct($path); |
|
| 27 | |||
| 28 | 6 | $this->threadControl = $threadControl; |
|
| 29 | 6 | } |
|
| 30 | |||
| 31 | /** |
||
| 32 | * @param string $method |
||
| 33 | * |
||
| 34 | * @return RequestInterface |
||
| 35 | */ |
||
| 36 | 6 | public function build(string $method = 'post'): RequestInterface |
|
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @return string |
||
| 45 | */ |
||
| 46 | 6 | public function buildBody(): string |
|
| 51 |