示例#1
0
 /**
  * @param string $tab
  * @return string
  */
 public function dump($tab = "")
 {
     if ($this->cast == Types::OBJECT) {
         $cast = $this->instance_of;
     } else {
         $cast = Types::getTypeCode($this->cast);
     }
     return $cast . ' ' . ($this->is_ref ? '&' : '') . '$' . $this->name . ($this->is_optional ? ' = ' . var_export($this->value, true) : '');
 }