MCPcopy Create free account
hub / github.com/apache/thrift / __construct

Method __construct

lib/php/src/Thrift.php:74–88  ·  view source on GitHub ↗
($p1=null, $p2=0)

Source from the content-addressed store, hash-verified

72class 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',

Callers

nothing calls this directly

Calls 1

__constructMethod · 0.45

Tested by

no test coverage detected