Issues (10)

tests/TestOnly/TestCollectionObject.php (1 issue)

Severity
1
<?php
2
3
namespace Dynamic\Collection\Test\TestOnly;
4
5
use SilverStripe\Dev\TestOnly;
6
use SilverStripe\ORM\DataObject;
7
8
class TestCollectionObject extends DataObject implements TestOnly
9
{
10
    /**
11
     * @var array
12
     */
13
    private static $db = [
0 ignored issues
show
The private property $db is not used, and could be removed.
Loading history...
14
        'Title' => 'Varchar(255)',
15
    ];
16
17
    /**
18
     * @return array
19
     */
20
    public function getSortOptions()
21
    {
22
        return array(
23
            'Created' => 'Date',
24
            'Title' => 'Name A-Z',
25
            'Title DESC' => 'Name Z-A',
26
        );
27
    }
28
}
29