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

Method __construct

lib/php/src/Thrift.php:438–448  ·  view source on GitHub ↗
($spec=null, $vals=null)

Source from the content-addressed store, hash-verified

436 abstract public function write($output);
437
438 public function __construct($spec=null, $vals=null)
439 {
440 if (is_array($spec) && is_array($vals)) {
441 foreach ($spec as $fid => $fspec) {
442 $var = $fspec['var'];
443 if (isset($vals[$var])) {
444 $this->$var = $vals[$var];
445 }
446 }
447 }
448 }
449
450 private function _readMap(&$var, $spec, $input)
451 {

Callers 2

__constructMethod · 0.45
__constructMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected