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

UpdatesManager::releases()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 0
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
}