| 1 | <?php |
||
| 9 | class gwCoreExceptionInfo implements gwiExceptionInfo |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var gwCoreException |
||
| 13 | */ |
||
| 14 | protected $exception; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var string |
||
| 18 | */ |
||
| 19 | protected $info; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Constructor. |
||
| 23 | * |
||
| 24 | * @param gwCoreException $info |
||
|
|
|||
| 25 | * @param string $info |
||
| 26 | */ |
||
| 27 | public function __construct($info = null) |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Exception setter. |
||
| 34 | * |
||
| 35 | * @param gwCoreException $exception |
||
| 36 | */ |
||
| 37 | final public function setException(gwCoreException $exception) |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Returns a string representation of this object. |
||
| 44 | * |
||
| 45 | * @return string |
||
| 46 | */ |
||
| 47 | public function __toString() |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Returns a plain text representation of the info contained in this object. |
||
| 54 | * |
||
| 55 | * @return string |
||
| 56 | */ |
||
| 57 | public function fetch() |
||
| 61 | |||
| 62 | /** |
||
| 63 | * Returns a HTML representation of the info contained in this object. |
||
| 64 | * |
||
| 65 | * @return string |
||
| 66 | */ |
||
| 67 | public function fetchHTML() |
||
| 71 | |||
| 72 | /** |
||
| 73 | * Returns a string representation of a value. |
||
| 74 | * Used by subclasses. |
||
| 75 | * |
||
| 76 | * @link http://www.php.net/manual/en/function.get-resource-type.php |
||
| 77 | * |
||
| 78 | * @param mixed $value |
||
| 79 | * |
||
| 80 | * @return string |
||
| 81 | */ |
||
| 82 | public function getAsString($value) |
||
| 102 | } |
||
| 103 |
This check looks for
@paramannotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.