Completed
Pull Request — master (#81)
by
unknown
01:39
created

Input::getRequest()

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 1
ccs 0
cts 0
cp 0
nc 1
1
<?php
2
3
namespace PragmaRX\Google2FALaravel\Support;
4
5
trait Input
6
{
7
    /**
8
     * Check if the request input has the OTP.
9
     *
10
     * @return mixed
11
     */
12 9
    protected function inputHasOneTimePassword()
13
    {
14 9
        return $this->getRequest()->has($this->config('otp_input'));
15
    }
16
17 6
    protected function getInputOneTimePassword()
18
    {
19 6
        return $this->getRequest()->input($this->config('otp_input'));
20
    }
21
22
    abstract public function getRequest();
23
24
    abstract protected function config($string, $children = []);
25
}
26