Passed
Push — master ( d50d64...3e68ba )
by Maike
02:16
created

Result   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 50
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 50
ccs 0
cts 18
cp 0
rs 10
c 0
b 0
f 0
wmc 5

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getLastFunction() 0 3 1
A __construct() 0 2 1
A setLastFunction() 0 3 1
A setResults() 0 3 1
A getResults() 0 3 1
1
<?php
2
/**
3
 * User: Maike Oliveira
4
 * Date: 24/10/17
5
 * Time: 09:03
6
 */
7
8
namespace MocOrm\Model;
9
10
use MocOrm\Support\Log;
11
12
class Result
13
{
14
    /**
15
     * @var $last_function Last function execute on ORM
16
     */
0 ignored issues
show
Documentation Bug introduced by
The doc comment $last_function at position 0 could not be parsed: Unknown type name '$last_function' at position 0 in $last_function.
Loading history...
17
    private $last_function;
18
    /**
19
     * @var $results Last result orm
20
     */
0 ignored issues
show
Documentation Bug introduced by
The doc comment $results at position 0 could not be parsed: Unknown type name '$results' at position 0 in $results.
Loading history...
21
    private $results;
22
    /**
23
     * @var Log
24
     */
25
    private $Log;
0 ignored issues
show
Unused Code introduced by
The property $Log is not used and could be removed.

This check marks private properties in classes that are never used. Those properties can be removed.

Loading history...
26
27
    public function __construct()
28
    {
29
//        $this->Log = new Log;
30
    }
31
32
    /**
33
     * @return mixed
34
     */
35
    public function getLastFunction()
36
    {
37
        return $this->last_function;
38
    }
39
40
    /**
41
     * @param mixed $last_function
42
     */
43
    public function setLastFunction($last_function)
44
    {
45
        $this->last_function = $last_function;
46
    }
47
48
    /**
49
     * @return mixed
50
     */
51
    public function getResults()
52
    {
53
        return $this->results;
54
    }
55
56
    /**
57
     * @param mixed $results
58
     */
59
    public function setResults($results)
60
    {
61
        $this->results = $results;
62
    }
63
}