Completed
Push — master ( 8c9cef...d36a0f )
by Ricardo
04:29
created

Repository::stayInBranchOfAmbiente()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
/**
4
 * This file is part of Fabrica.
5
 *
6
 * (c) Alexandre Salomé <[email protected]>
7
 * (c) Julien DIDIER <[email protected]>
8
 *
9
 * This source file is subject to the GPL license that is bundled
10
 * with this source code in the file LICENSE.
11
 */
12
13
namespace Fabrica\Models\Code;
14
15
use Pedreiro\Models\Base;
16
17
class Repository extends Base
18
{
19
20
    public static $apresentationName = 'Repositorys';
21
22
    protected $organizationPerspective = true;
23
24
    protected $table = 'repositories';
25
26
    /**
27
     * The attributes that are mass assignable.
28
     *
29
     * @var array
30
     */
31
    protected $fillable = [
32
        'code',
33
        'name'
34
    ];
35
36
    public function stayInBranchOfAmbiente(Ambiente $ambiente)
37
    {
38
        // @todo
39
        return true;
40
    }
41
42
    public function getApresentationName()
43
    {
44
        return 'Numero do Repository';
45
    }
46
47
    public function project()
48
    {
49
        return $this->belongsTo('Fabrica\Models\Code\Project', 'code_project_id', 'id');
50
    }
51
}
52