UpdatesManager::getRelease()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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