Completed
Push — erdiko2 ( 719271...84f584 )
by John
05:49
created

Test   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getTests() 0 4 1
1
<?php
2
/**
3
 * Test Model
4
 *
5
 * Model for Tests
6
 *
7
 * @category    app
8
 * @package     models
9
 * @copyright   Copyright (c) 2017, Arroyo Labs, http://www.arroyolabs.com
10
 * @author      John Arroyo, [email protected]
11
 */
12
namespace app\models;
13
14
class Test
15
{
16
    use \erdiko\doctrine\models\EntityTrait; // This adds some convenience methods
17
18
    public function getTests()
19
    {
20
        return $this->getRepository('app\entities\Test')->findAll(); // The easy (convenient) way
21
    }
22
}
23