GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( dec958...1175d2 )
by Jacky
32s
created

TechnicalManager   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 65
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 20 1
A processDailyRoutine() 0 14 1
1
<?php
2
3
namespace Asylamba\Modules\Hephaistos\Manager;
4
5
use Asylamba\Classes\Entity\EntityManager;
6
use Asylamba\Modules\Zeus\Manager\PlayerManager;
7
use Asylamba\Classes\Worker\API;
8
9
use Asylamba\Modules\Hephaistos\Routine\DailyRoutine;
10
11
class TechnicalManager
12
{
13
	/** @var EntityManager **/
14
	protected $entityManager;
15
	/** @var API **/
16
	protected $api;
17
	/** @var string **/
18
	protected $apimode;
19
	/** @var PlayerManager **/
20
	protected $playerManager;
21
	/** @var int **/
22
	protected $playerInactiveTimeLimit;
23
	/** @var int **/
24
	protected $playerGlobalInactiveTime;
25
	/** @var int **/
26
	protected $readTimeout;
27
	/** @var int **/
28
	protected $unreadTimeout;
29
	
30
	/**
31
	 * @param EntityManager $entityManager
32
	 * @param API $api
33
	 * @param string $apimode
34
	 * @param PlayerManager $playerManager
35
	 * @param int $playerInactiveTimeLimit
36
	 * @param int $playerGlobalInactiveTime
37
	 * @param int $readTimeout
38
	 * @param int $unreadTimeout
39
	 */
40
	public function __construct(
41
		EntityManager $entityManager,
42
		API $api,
43
		$apimode,
44
		PlayerManager $playerManager,
45
		$playerInactiveTimeLimit,
46
		$playerGlobalInactiveTime,
47
		$readTimeout,
48
		$unreadTimeout
49
	)
50
	{
0 ignored issues
show
Coding Style introduced by
The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line
Loading history...
51
		$this->entityManager = $entityManager;
52
		$this->api = $api;
53
		$this->apimode = $apimode;
54
		$this->playerManager = $playerManager;
55
		$this->playerInactiveTimeLimit = $playerInactiveTimeLimit;
56
		$this->playerGlobalInactiveTime = $playerGlobalInactiveTime;
57
		$this->readTimeout = $readTimeout;
58
		$this->unreadTimeout = $unreadTimeout;
59
	}
60
	
61
	public function processDailyRoutine()
62
	{
63
		$dailyRoutine = new DailyRoutine();
64
		$dailyRoutine->execute(
65
			$this->entityManager,
66
			$this->api,
67
			$this->apimode,
68
			$this->playerManager,
69
			$this->playerInactiveTimeLimit,
70
			$this->playerGlobalInactiveTime,
71
			$this->readTimeout,
72
			$this->unreadTimeout
73
		);
74
	}
75
}