| Total Complexity | 3 |
| Total Lines | 62 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class CodeRequest extends AbstractRequest implements BodyRequestInterface |
||
| 12 | { |
||
| 13 | use UtilityTrait; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var int |
||
| 17 | */ |
||
| 18 | protected $imageSize; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | protected $codeType; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var null|string |
||
| 27 | */ |
||
| 28 | protected $ref; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * CodeRequest constructor. |
||
| 32 | * |
||
| 33 | * @param string $path |
||
| 34 | * @param int $imageSize |
||
| 35 | * @param string $codeType |
||
| 36 | * @param null|string $ref |
||
| 37 | */ |
||
| 38 | 3 | public function __construct(string $path, int $imageSize, string $codeType, ?string $ref = null) |
|
| 45 | 3 | } |
|
| 46 | |||
| 47 | /** |
||
| 48 | * @param string $method |
||
| 49 | * |
||
| 50 | * @return RequestInterface |
||
| 51 | */ |
||
| 52 | 3 | public function build(string $method = 'post'): RequestInterface |
|
| 57 | } |
||
| 58 | |||
| 59 | /** |
||
| 60 | * @return string |
||
| 61 | */ |
||
| 62 | 3 | public function buildBody(): string |
|
| 75 |