Skip to content

Instantly share code, notes, and snippets.

@komapa
Created May 30, 2011 13:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save komapa/998908 to your computer and use it in GitHub Desktop.
Save komapa/998908 to your computer and use it in GitHub Desktop.
Propel runtime phpDoc optimisations - exception/
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