Completed
Branch master (5a81ac)
by Albert
02:06
created

UpdatesManager   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 0
dl 0
loc 40
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A verifyCustomer() 0 4 1
A getRelease() 0 3 1
1
<?php
2
namespace Elimuswift\Core\Updates;
3
4
use Elimuswift\Core\Update;
5
use Elimuswift\Core\Repositories\Contracts\RepositoryContract;
6
7
/**
8
* Manage application updates
9
*/
10
class UpdatesManager
11
{
12
	/**
13
	 * Update Repository 
14
	 *
15
	 * @var mixed
16
	 **/
17
	public $repository;
18
	/**
19
	 * Create a new instance of the UpdatesManager::class
20
	 * 
21
	 **/
22
	
23
	public function __construct(RepositoryContract $repository)
24
	{
25
		$this->repository = $repository;
26
	}
27
28
	/**
29
	 * Determin if the customer has already verified the product
30
	 *
31
	 * @return void
32
	 * @param string $purchaseKey 
33
	 **/
34
	public function verifyCustomer($purchaseKey)
35
	{
36
		$this->repository->findCustomer($purchaseKey);
37
	}
38
39
	/**
40
	 * Get a specific update version
41
	 *
42
	 * @return void
43
	 * @param string $version Build version 
44
	 **/
45
	public function getRelease($version)
0 ignored issues
show
Unused Code introduced by
The parameter $version is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
46
	{
47
	}
48
49
}