Completed
Pull Request — master (#98)
by Robbie
01:48
created

Team   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 31
rs 10
c 0
b 0
f 0
wmc 1
1
<?php
2
3
namespace SilverLeague\IDEAnnotator\Tests;
4
5
use SilverStripe\Core\Config\Config;
6
use SilverStripe\Core\Extensible;
7
use SilverStripe\ORM\DataObject;
8
use SilverStripe\Dev\TestOnly;
9
10
/**
11
 *
12
 */
13
14
/* comment */
15
16
// Another comment
17
class Team extends DataObject implements TestOnly
18
{
19
20
    private static $extensions = [
21
        Team_Extension::class
22
    ];
23
24
    private static $db = [
25
        'Title'      => 'Varchar',
26
        'VisitCount' => 'Int',
27
        'Price'      => 'Currency'
28
    ];
29
30
    private static $has_one = [
31
        'Captain'            => Player::class,
32
        'HasOneRelationship' => Player::class,
33
    ];
34
35
    private static $has_many = [
36
        'SubTeams' => SubTeam::class,
37
        'Comments' => TeamComment::class
38
    ];
39
40
    private static $many_many = [
41
        'Players'           => 'SilverLeague\IDEAnnotator\Tests\Player.Players',
42
        'Reserves'          => 'SilverLeague\IDEAnnotator\Tests\Player.Reserves',
43
        'SecondarySubTeams' => SubTeam::class,
44
    ];
45
46
    public function SecondarySubTeams()
47
    {
48
49
    }
50
}
51