Completed
Pull Request — master (#4)
by Timóteo
05:46
created

User   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 31
rs 10
c 0
b 0
f 0
wmc 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace TZachi\PhalconRepository\Tests\Mock\Model;
6
7
use Phalcon\Mvc\Model;
8
9
/**
10
 * Sample model for functional test cases
11
 *
12
 * @Source('users')
13
 */
14
class User extends Model
15
{
16
    /**
17
     * @var int
18
     * @Primary
19
     * @Identity
20
     * @Column(type="integer", length=10, nullable=false)
21
     */
22
    public $id;
23
24
    /**
25
     * @var string
26
     * @Column(type="string", length=127, nullable=false)
27
     */
28
    public $name;
29
30
    /**
31
     * @var string
32
     * @Column(type="string", length=127, nullable=false)
33
     */
34
    public $email;
35
36
    /**
37
     * @var string
38
     * @Column(type="string", length=19, column="created_at")
39
     */
40
    public $createdAt;
41
42
    public function getSource(): string
43
    {
44
        return 'users';
45
    }
46
}
47