@@ -23,8 +23,6 @@ |
||
| 23 | 23 | * $list = DataList::create('SiteTree'); |
| 24 | 24 | * $list = SiteTree::get(); |
| 25 | 25 | * |
| 26 | - * @param string $class the class name |
|
| 27 | - * @param mixed $arguments,... arguments to pass to the constructor |
|
| 28 | 26 | * @return static |
| 29 | 27 | */ |
| 30 | 28 | public static function create() { |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | * Find version of this object in the given stage |
| 128 | 128 | * |
| 129 | 129 | * @param string $stage |
| 130 | - * @return Versioned|DataObject |
|
| 130 | + * @return DataObject|null |
|
| 131 | 131 | */ |
| 132 | 132 | protected function getObjectInStage($stage) { |
| 133 | 133 | return Versioned::get_by_stage($this->ObjectClass, $stage)->byID($this->ObjectID); |
@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | /** |
| 137 | 137 | * Find latest version of this object |
| 138 | 138 | * |
| 139 | - * @return Versioned|DataObject |
|
| 139 | + * @return DataObject|null |
|
| 140 | 140 | */ |
| 141 | 141 | protected function getObjectLatestVersion() { |
| 142 | 142 | return Versioned::get_latest_version($this->ObjectClass, $this->ObjectID); |