FetcherInterface.php 865 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * OpenWeatherMap-PHP-API — A php api to parse weather data from http://www.OpenWeatherMap.org .
  4. *
  5. * @license MIT
  6. *
  7. * Please see the LICENSE file distributed with this source code for further
  8. * information regarding copyright and licensing.
  9. *
  10. * Please visit the following links to read about the usage policies and the license of
  11. * OpenWeatherMap before using this class:
  12. *
  13. * @see http://www.OpenWeatherMap.org
  14. * @see http://www.OpenWeatherMap.org/terms
  15. * @see http://openweathermap.org/appid
  16. */
  17. namespace Cmfcmf\OpenWeatherMap\Fetcher;
  18. /**
  19. * Interface FetcherInterface.
  20. *
  21. * @api
  22. */
  23. interface FetcherInterface
  24. {
  25. /**
  26. * Fetch contents from the specified url.
  27. *
  28. * @param string $url The url to be fetched.
  29. *
  30. * @return string The fetched content.
  31. *
  32. * @api
  33. */
  34. public function fetch($url);
  35. }