Menu   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
dl 0
loc 17
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 5 1
1
<?php declare(strict_types=1);
2
/**
3
 * 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     AnimeListClient
10
 * @author      Timothy J. Warren <[email protected]>
11
 * @copyright   2015 - 2017  Timothy J. Warren
12
 * @license     http://www.opensource.org/licenses/mit-license.html  MIT License
13
 * @version     4.0
14
 * @link        https://github.com/timw4mail/HummingBirdAnimeClient
15
 */
16
17
namespace Aviat\AnimeClient\Helper;
18
19
use Aviat\AnimeClient\MenuGenerator;
20
21
/**
22
 * MenuGenerator helper wrapper
23
 */
24
class Menu {
25
26
	use \Aviat\Ion\Di\ContainerAware;
27
28
	/**
29
	 * Create the html for the selected menu
30
	 *
31
	 * @param  string $menu_name
32
	 * @return string
33
	 */
34
	public function __invoke($menu_name)
35
	{
36
		$generator = new MenuGenerator($this->container);
37
		return $generator->generate($menu_name);
38
	}
39
40
}
41
// End of Menu.php