Issues (31)

tests/Models/FlickrPhoto.php (3 issues)

Severity
1
<?php declare(strict_types = 1);
2
3
/**
4
 * Created by PhpStorm.
5
 * User: gordon
6
 * Date: 24/3/2561
7
 * Time: 20:36 น.
8
 */
9
10
namespace Suilven\FreeTextSearch\Tests\Models;
11
12
use SilverStripe\Dev\TestOnly;
13
use SilverStripe\ORM\DataObject;
14
15
/**
16
 * Class FlickrPhoto
17
 *
18
 * @package Suilven\FreeTextSearch\Tests\Models
19
 * @property string Title
20
 * @property string Description
21
 */
22
class FlickrPhoto extends DataObject implements TestOnly
23
{
24
    private static $table_name = 'TestFTSFlickrPhoto';
25
26
    private static $db = [
27
        'Title' => 'Varchar(255)',
28
        'Description' => 'HTMLText',
29
        'TakenAt' => 'Datetime',
30
31
32
        'Orientation' => 'Int',
33
        'PostCode' => 'Varchar(20)',
34
        'FlickrPlaceID' => 'Varchar(255)',
35
        'Aperture' => 'Float',
36
        'ShutterSpeed' => 'Varchar',
37
        'FocalLength35mm' => 'Int',
38
        'ISO' => 'Int',
39
40
        'AspectRatio' => 'Float',
41
42
        // geo
43
        'Lat' => 'Decimal(18,15)',
44
        'Lon' => 'Decimal(18,15)',
45
    ];
46
47
    private static $belongs_many_many = array(
0 ignored issues
show
The private property $belongs_many_many is not used, and could be removed.
Loading history...
48
        'FlickrSets' => FlickrSet::class
49
    );
50
51
    private static $many_many = array(
0 ignored issues
show
The private property $many_many is not used, and could be removed.
Loading history...
52
        'FlickrTags' => FlickrTag::class
53
    );
54
55
    /** @var array<string,string> */
56
    private static $has_one = [
0 ignored issues
show
The private property $has_one is not used, and could be removed.
Loading history...
57
        'Photographer' => FlickrAuthor::class,
58
    ];
59
}
60