| 1 | <?php |
||
| 17 | class TransportRequest |
||
| 18 | { |
||
| 19 | use ConfigurableTrait; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | protected $useOperatorUnits = 'true'; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var string |
||
| 28 | */ |
||
| 29 | protected $method; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @var string |
||
| 33 | */ |
||
| 34 | protected $service; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @var array |
||
| 38 | */ |
||
| 39 | protected $params = []; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Custom headers |
||
| 43 | * @var array |
||
| 44 | */ |
||
| 45 | protected $headers = []; |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @var CredentialsInterface |
||
| 49 | */ |
||
| 50 | protected $credentials; |
||
| 51 | |||
| 52 | |||
| 53 | 1 | public function __construct(array $options = []) |
|
| 57 | |||
| 58 | /** |
||
| 59 | * @return string |
||
| 60 | */ |
||
| 61 | 1 | public function getService() |
|
| 65 | |||
| 66 | /** |
||
| 67 | * @return string |
||
| 68 | */ |
||
| 69 | 1 | public function getMethod() |
|
| 73 | |||
| 74 | /** |
||
| 75 | * @return array |
||
| 76 | */ |
||
| 77 | 1 | public function getParams() |
|
| 81 | |||
| 82 | /** |
||
| 83 | * @return string |
||
| 84 | */ |
||
| 85 | 1 | public function getUseOperatorUnits() |
|
| 89 | |||
| 90 | /** |
||
| 91 | * @param bool $useOperatorUnits |
||
| 92 | * @throws InvalidArgumentException |
||
| 93 | */ |
||
| 94 | public function setUseOperatorUnits($useOperatorUnits) |
||
| 105 | |||
| 106 | /** |
||
| 107 | * @return CredentialsInterface |
||
| 108 | */ |
||
| 109 | 1 | public function getCredentials() |
|
| 113 | } |
||
| 114 |