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

Test::getTests()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
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