1 | <?php |
||
25 | class Shorten implements ActionInterface |
||
26 | { |
||
27 | /** |
||
28 | * @var Url |
||
29 | */ |
||
30 | protected $resource; |
||
31 | |||
32 | /** |
||
33 | * Shorten constructor. |
||
34 | * @param $longUrl |
||
35 | * @throws GoogleUrlException |
||
36 | */ |
||
37 | 15 | public function __construct($longUrl) |
|
46 | |||
47 | /** |
||
48 | * @return string |
||
49 | */ |
||
50 | 12 | public function getRequestMethod() |
|
54 | |||
55 | /** |
||
56 | * @return array |
||
57 | */ |
||
58 | 12 | public function getRequestOptions() |
|
64 | |||
65 | /** |
||
66 | * @param ResponseInterface $response |
||
67 | * @return Url |
||
68 | */ |
||
69 | 3 | public function processResponse(ResponseInterface $response) |
|
74 | } |
||
75 |