1 | <?php |
||
7 | class ComposerPackageVersion extends DataObject |
||
|
|||
8 | { |
||
9 | /** |
||
10 | * @var array |
||
11 | */ |
||
12 | private static $db = array( |
||
13 | 'Scope' => "Enum('Global,Project','Project')", |
||
14 | 'Package' => 'Varchar(255)', |
||
15 | 'Version' => 'Varchar(255)', |
||
16 | ); |
||
17 | |||
18 | /** |
||
19 | * @var array |
||
20 | */ |
||
21 | private static $summary_fields = array( |
||
22 | 'Scope', |
||
23 | 'Package', |
||
24 | 'Version', |
||
25 | ); |
||
26 | |||
27 | /** |
||
28 | * requireDefaultRecords() gets abused to update the information on dev/build. |
||
29 | */ |
||
30 | public function requireDefaultRecords() |
||
49 | |||
50 | /** |
||
51 | * returns a prepared list of the packages. |
||
52 | * |
||
53 | * @param bool $global (default: false) |
||
54 | * |
||
55 | * @return array |
||
56 | */ |
||
57 | public function getPackageVersions($global = false) |
||
92 | } |
||
93 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.