ResultReturning   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 23
ccs 5
cts 5
cp 1
rs 10
c 1
b 0
f 0
wmc 2
lcom 0
cbo 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A returning() 0 4 1
A __construct() 0 4 1
1
<?php
2
declare(strict_types=1);
3
4
/**
5
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
6
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
7
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
8
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
9
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
10
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
11
 * THE SOFTWARE.
12
 */
13
14
namespace Ytake\LaravelCouchbase\Events;
15
16
/**
17
 * Class ResultReturning
18
 *
19
 * @author Yuuki Takezawa<[email protected]>
20
 */
21
final class ResultReturning
22
{
23
    /** @var mixed */
24
    private $returning;
25
26
    /**
27
     * ResultReturning constructor.
28
     *
29
     * @param mixed $returning
30
     */
31 16
    public function __construct($returning)
32
    {
33 16
        $this->returning = $returning;
34 16
    }
35
36
    /**
37
     * @return mixed
38
     */
39 2
    public function returning()
40
    {
41 2
        return $this->returning;
42
    }
43
}
44