@@ -79,64 +79,72 @@ abstract public function show_type();
7979
8080 /**
8181 * Get a string representing the given repository and changeset.
82- * @param object Repository
83- * @param object Changeset
82+ * @param SourceRepo $p_repo Repository
83+ * @param SourceChangeset $p_changeset Changeset
8484 * @return string Changeset string
8585 */
8686 abstract public function show_changeset ( $ p_repo , $ p_changeset );
8787
8888 /**
8989 * Get a string representing a file for a given repository and changeset.
90- * @param object Repository
91- * @param object Changeset
92- * @param object File
90+ * @param SourceRepo $p_repo Repository
91+ * @param SourceChangeset $p_changeset Changeset
92+ * @param SourceFile $p_file File
9393 * @return string File string
9494 */
9595 abstract public function show_file ( $ p_repo , $ p_changeset , $ p_file );
9696
9797 /**
9898 * Get a URL to a view of the repository at the given changeset.
99- * @param object Repository
100- * @param object Changeset
99+ * @param SourceRepo $p_repo Repository
100+ * @param SourceChangeset $p_changeset Changeset
101101 * @return string URL
102102 */
103103 abstract public function url_repo ( $ p_repo , $ p_changeset =null );
104104
105105 /**
106106 * Get a URL to a diff view of the given changeset.
107- * @param object Repository
108- * @param object Changeset
107+ * @param SourceRepo $p_repo Repository
108+ * @param SourceChangeset $p_changeset Changeset
109109 * @return string URL
110110 */
111111 abstract public function url_changeset ( $ p_repo , $ p_changeset );
112112
113113 /**
114114 * Get a URL to a view of the given file at the given changeset.
115- * @param object Repository
116- * @param object Changeset
117- * @param object File
115+ *
116+ * Return empty string if URL is not relevant in the given context
117+ * (e.g. deleted file) or not supported by VCS.
118+ *
119+ * @param SourceRepo $p_repo Repository
120+ * @param SourceChangeset $p_changeset Changeset
121+ * @param SourceFile $p_file File
118122 * @return string URL
119123 */
120124 abstract public function url_file ( $ p_repo , $ p_changeset , $ p_file );
121125
122126 /**
123127 * Get a URL to a diff view of the given file at the given changeset.
124- * @param object Repository
125- * @param object Changeset
126- * @param object File
128+ *
129+ * Return empty string if URL is not relevant in the given context
130+ * (e.g. deleted file) or not supported by VCS.
131+ *
132+ * @param SourceRepo $p_repo Repository
133+ * @param SourceChangeset $p_changeset Changeset
134+ * @param SourceFile $p_file File
127135 * @return string URL
128136 */
129137 abstract public function url_diff ( $ p_repo , $ p_changeset , $ p_file );
130138
131139 /**
132140 * Output form elements for custom repository data.
133- * @param object Repository
141+ * @param SourceRepo $p_repo Repository
134142 */
135143 public function update_repo_form ( $ p_repo ) {}
136144
137145 /**
138146 * Process form elements for custom repository data.
139- * @param SourceRepo Repository
147+ * @param SourceRepo $p_repo Repository
140148 */
141149 public function update_repo ( $ p_repo ) {}
142150
@@ -165,37 +173,38 @@ public function precommit() {}
165173
166174 /**
167175 * Translate commit data to Changeset objects for the given repo.
168- * @param object Repository
169- * @param mixed Commit data
176+ * @param SourceRepo $p_repo Repository
177+ * @param mixed $p_data Commit data
170178 * @return array Changesets
171179 */
172180 public function commit ( $ p_repo , $ p_data ) {}
173181
174182 /**
175183 * Initiate an import of changeset data for the entire repository.
176- * @param object Repository
177- * @return array Changesets
184+ * @param SourceRepo $p_repo Repository
185+ * @return SourceChangeset[] Changesets
178186 */
179187 public function import_full ( $ p_repo ) {}
180188
181189 /**
182190 * Initiate an import of changeset data not yet imported.
183- * @param object Repository
184- * @return array Changesets
191+ * @param SourceRepo $p_repo Repository
192+ * @return SourceChangeset Changesets
185193 */
186194 public function import_latest ( $ p_repo ) {}
187195
188196 /**
189197 * Initialize contact with the integration framework.
190- * @return object The plugin object
198+ * @return MantisSourcePlugin The plugin object
191199 */
192200 final public function integration ( $ p_event ) {
193201 return $ this ;
194202 }
195203
196204 /**
197- * Pass the precommit event to the interface without the
198- * event paramater.
205+ * Pass the precommit event to the interface without the event paremater.
206+ * @param mixed $p_event Unused
207+ * @return array|null
199208 */
200209 final public function _precommit ( $ p_event ) {
201210 return $ this ->precommit ();
0 commit comments