| Total Complexity | 3 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | class Gateway implements GatewayInterface |
||
| 20 | { |
||
| 21 | use GatewayTrait; |
||
| 22 | |||
| 23 | const DEFAULT_TIMEOUT = 5.0; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var float |
||
| 27 | */ |
||
| 28 | protected $timeout; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Return timeout. |
||
| 32 | * |
||
| 33 | * @return int|mixed |
||
| 34 | */ |
||
| 35 | public function getTimeout() |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Set timeout. |
||
| 42 | * |
||
| 43 | * @param int $timeout |
||
| 44 | * |
||
| 45 | * @return $this |
||
| 46 | */ |
||
| 47 | public function setTimeout($timeout) |
||
| 51 | } |
||
| 52 | } |