UpdatesManager   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 44
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

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

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
3
namespace Elimuswift\Core\Updates;
4
5
use Elimuswift\Core\Update;
6
use Elimuswift\Core\Repositories\Contracts\RepositoryContract;
7
8
/**
9
 * Manage application updates.
10
 */
11
class UpdatesManager
12
{
13
    /**
14
     * Update Repository.
15
     *
16
     * @var mixed
17
     **/
18
    public $repository;
19
20
    /**
21
     * Create a new instance of the UpdatesManager::class.
22
     *
23
     * @param RepositoryContract $repository description
24
     **/
25
    public function __construct(RepositoryContract $repository)
26
    {
27
        $this->repository = $repository;
28
    }
29
30
//end __construct()
31
32
    /**
33
     * Determin if the customer has already verified the product.
34
     *
35
     * @param string $purchaseKey
36
     **/
37
    public function verifyCustomer($purchaseKey)
38
    {
39
        $this->repository->findCustomer($purchaseKey);
40
    }
41
42
//end verifyCustomer()
43
44
    /**
45
     * Get a specific update version.
46
     *
47
     * @param string $version Build version
48
     **/
49
    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...
50
    {
51
    }
52
53
//end getRelease()
54
}//end class
55