Created
May 30, 2011 13:38
-
-
Save komapa/998908 to your computer and use it in GitHub Desktop.
Propel runtime phpDoc optimisations - exception/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: exception/PropelException.php | |
=================================================================== | |
--- exception/PropelException.php (revision 2294) | |
+++ exception/PropelException.php (working copy) | |
@@ -16,11 +16,20 @@ | |
*/ | |
class PropelException extends Exception | |
{ | |
- /** The nested "cause" exception. */ | |
+ /** | |
+ * The nested "cause" exception. | |
+ * | |
+ * @var Exception | |
+ */ | |
protected $cause; | |
- | |
+ | |
/** | |
* Emulates wrapped exceptions for PHP < 5.3 | |
+ * | |
+ * @param string $message | |
+ * @param Exception $previous | |
+ * | |
+ * @return PropelException | |
*/ | |
public function __construct($message = null, Exception $previous = null) | |
{ | |
@@ -45,8 +54,8 @@ | |
/** | |
* Get the previous Exception | |
* We can't override getPrevious() since it's final | |
- * | |
- * @return Exception The previous exception | |
+ * | |
+ * @return Exception The previous exception | |
*/ | |
public function getCause() | |
{ | |
@@ -56,5 +65,4 @@ | |
return $this->cause; | |
} | |
} | |
- | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment