RecoverJob::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
dl 0
loc 4
rs 10
c 2
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php namespace Cerbero\Auth\Jobs;
2
3
use Illuminate\Contracts\Bus\SelfHandling;
4
5
class RecoverJob implements SelfHandling {
6
7
	/**
8
	 * @author	Andrea Marco Sartori
9
	 * @var		string	$email	Email input.
10
	 */
11
	public $email;
12
13
	/**
14
	 * Create a new job instance.
15
	 *
16
	 * @return void
17
	 */
18
	public function __construct($email)
19
	{
20
		$this->email = $email;
21
	}
22
23
	/**
24
	 * Execute the job.
25
	 *
26
	 * @return void
27
	 */
28
	public function handle()
29
	{
30
		return str_random(10);
31
	}
32
33
}
34