12 * obtain it through the world-wide-web, please send an email |
12 * obtain it through the world-wide-web, please send an email |
13 * to license@zend.com so we can send you a copy immediately. |
13 * to license@zend.com so we can send you a copy immediately. |
14 * |
14 * |
15 * @category Zend |
15 * @category Zend |
16 * @package Zend_Service_ShortUrl |
16 * @package Zend_Service_ShortUrl |
17 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
17 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
18 * @license http://framework.zend.com/license/new-bsd New BSD License |
18 * @license http://framework.zend.com/license/new-bsd New BSD License |
19 * @version $Id: $ |
19 * @version $Id: $ |
20 */ |
20 */ |
21 |
21 |
22 /** |
22 /** |
23 * @category Zend |
23 * @category Zend |
24 * @package Zend_Service_ShortUrl |
24 * @package Zend_Service_ShortUrl |
25 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
25 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
26 * @license http://framework.zend.com/license/new-bsd New BSD License |
26 * @license http://framework.zend.com/license/new-bsd New BSD License |
27 */ |
27 */ |
28 interface Zend_Service_ShortUrl_Shortener |
28 interface Zend_Service_ShortUrl_Shortener |
29 { |
29 { |
30 /** |
30 /** |
31 * This function shortens long url |
31 * This function shortens long url |
32 * |
32 * |
33 * @param string $url URL to Shorten |
33 * @param string $url URL to Shorten |
34 * @return string Shortened Url |
34 * @return string Shortened Url |
35 */ |
35 */ |
36 public function shorten($shortenedUrl); |
36 public function shorten($url); |
37 |
37 |
38 /** |
38 /** |
39 * Reveals target for short URL |
39 * Reveals target for short URL |
40 * |
40 * |
41 * @param string $shortenedUrl URL to reveal target of |
41 * @param string $shortenedUrl URL to reveal target of |
42 * @return string Unshortened Url |
42 * @return string Unshortened Url |