Completed
Push — 2.0 ( ee0168...76e968 )
by Marco
11:26
created

Result   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 17
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 11 1
1
<?php namespace Comodojo\Extender\Task;
2
3
use \Comodojo\Foundation\DataAccess\Model;
4
5
/**
6
* @package     Comodojo Extender
7
* @author      Marco Giovinazzi <[email protected]>
8
* @license     MIT
9
*
10
* LICENSE:
11
*
12
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
18
* THE SOFTWARE.
19
 */
20
21
22
class Result extends Model{
23
24
    protected $mode = self::READONLY;
25
26
    public function __construct($output) {
27
28
        $this->setRaw('pid', $output[0]);
29
        $this->setRaw('name', $output[1]);
30
        $this->setRaw('success', $output[2]);
31
        $this->setRaw('start', $output[3]);
32
        $this->setRaw('end', $output[4]);
33
        $this->setRaw('result', $output[5]);
34
        $this->setRaw('wid', $output[6]);
35
36
    }
37
38
}
39