API client for Kitsu.io, with optional Anime collection, and optional Anilist syncing.
anime
manga
kitsu
anilist
single-user

Menu.php 954B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php declare(strict_types=1);
  2. /**
  3. * Hummingbird Anime List Client
  4. *
  5. * An API client for Kitsu and MyAnimeList to manage anime and manga watch lists
  6. *
  7. * PHP version 7
  8. *
  9. * @package HummingbirdAnimeClient
  10. * @author Timothy J. Warren <tim@timshomepage.net>
  11. * @copyright 2015 - 2018 Timothy J. Warren
  12. * @license http://www.opensource.org/licenses/mit-license.html MIT License
  13. * @version 4.0
  14. * @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient
  15. */
  16. namespace Aviat\AnimeClient\Helper;
  17. use Aviat\AnimeClient\MenuGenerator;
  18. use Aviat\Ion\Di\ContainerAware;
  19. /**
  20. * MenuGenerator helper wrapper
  21. */
  22. final class Menu {
  23. use ContainerAware;
  24. /**
  25. * Create the html for the selected menu
  26. *
  27. * @param string $menuName
  28. * @return string
  29. */
  30. public function __invoke($menuName)
  31. {
  32. $generator = new MenuGenerator($this->container);
  33. return $generator->generate($menuName);
  34. }
  35. }
  36. // End of Menu.php