CleanupStrategy::__construct()   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
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 3
rs 10
1
<?php
2
3
namespace Soved\Laravel\Gdpr\Jobs\Cleanup;
4
5
use Illuminate\Contracts\Config\Repository;
6
use Illuminate\Database\Eloquent\Collection;
7
8
abstract class CleanupStrategy
9
{
10
    /**
11
     * @var \Illuminate\Contracts\Config\Repository
12
     */
13
    protected $config;
14
15
    /**
16
     * Create a new cleanup strategy instance.
17
     *
18
     * @return void
19
     */
20
    public function __construct(Repository $config)
21
    {
22
        $this->config = $config;
23
    }
24
25
    /**
26
     * Execute cleanup strategy.
27
     *
28
     * @return void
29
     */
30
    abstract public function execute(Collection $users);
31
}
32