| 1 | <?php |
||
| 23 | class Shorten implements \badams\GoogleUrl\ActionInterface |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * @var UrlResource |
||
| 27 | */ |
||
| 28 | protected $resource; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Shorten constructor. |
||
| 32 | * @param $longUrl |
||
| 33 | */ |
||
| 34 | 15 | public function __construct($longUrl) |
|
| 43 | |||
| 44 | /** |
||
| 45 | * @return string |
||
| 46 | */ |
||
| 47 | 12 | public function getRequestMethod() |
|
| 51 | |||
| 52 | /** |
||
| 53 | * @return array |
||
| 54 | */ |
||
| 55 | 12 | public function getRequestOptions() |
|
| 61 | |||
| 62 | /** |
||
| 63 | * @param \GuzzleHttp\Message\ResponseInterface $response |
||
| 64 | * @return UrlResource |
||
| 65 | */ |
||
| 66 | 3 | public function processResponse(\GuzzleHttp\Message\ResponseInterface $response) |
|
| 71 | } |
||
| 72 |