Test Failed
Push — master ( a6b51e...5fffdb )
by Gabriel
08:05
created

ClientHasRedirectTrait::setRedirectUri()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 6
rs 10
c 0
b 0
f 0
ccs 4
cts 4
cp 1
crap 1
1
<?php
2
3
namespace ByTIC\Hello\Models\Clients\Traits;
4
5
/**
6
 * Trait ClientHasRedirectTrait
7
 * @package ByTIC\Hello\Models\Clients\Traits
8
 *
9
 * @property string $redirect
10
 */
11
trait ClientHasRedirectTrait
12
{
13
14
    /**
15
     * @param $redirect
16
     * @return string
17
     */
18 4
    public function setRedirectUri($redirect)
19
    {
20 4
        $this->redirect = $redirect;
21 4
        $this->redirectUri = $redirect;
0 ignored issues
show
Bug introduced by
The property redirectUri does not seem to exist. Did you mean redirect?

An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.

If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.

Loading history...
22 4
        return $this;
23
    }
24
}
25