($p1=null, $p2=0)
| 72 | class TException extends Exception |
| 73 | { |
| 74 | public function __construct($p1=null, $p2=0) |
| 75 | { |
| 76 | if (is_array($p1) && is_array($p2)) { |
| 77 | $spec = $p1; |
| 78 | $vals = $p2; |
| 79 | foreach ($spec as $fid => $fspec) { |
| 80 | $var = $fspec['var']; |
| 81 | if (isset($vals[$var])) { |
| 82 | $this->$var = $vals[$var]; |
| 83 | } |
| 84 | } |
| 85 | } else { |
| 86 | parent::__construct((string)$p1, $p2); |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | static $tmethod = array(TType::BOOL => 'Bool', |
| 91 | TType::BYTE => 'Byte', |
nothing calls this directly
no test coverage detected