| 1 | <?php |
||
| 18 | abstract class DelayCore implements DelayInterface, ClientInterface |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * Base uri |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | protected $base; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * User-agent |
||
| 28 | * @var string |
||
| 29 | */ |
||
| 30 | protected $product; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * DelayClient constructor. |
||
| 34 | * |
||
| 35 | * @param string $baseUri |
||
| 36 | * @param string $product |
||
| 37 | */ |
||
| 38 | public function __construct($baseUri, $product) |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Get base uri |
||
| 46 | * |
||
| 47 | * @return string |
||
| 48 | */ |
||
| 49 | public function getBaseUri() |
||
| 53 | |||
| 54 | /** |
||
| 55 | * Get User-agent string |
||
| 56 | * |
||
| 57 | * @return string |
||
| 58 | */ |
||
| 59 | public function getUserAgent() |
||
| 63 | |||
| 64 | /** |
||
| 65 | * Handle delay |
||
| 66 | * |
||
| 67 | * @param Delay\ManageInterface $handler |
||
| 68 | * @return Delay\BaseInterface |
||
| 69 | */ |
||
| 70 | public function handle(Delay\ManageInterface $handler) |
||
| 74 | } |
||
| 75 |