getTypeName() public static method

Get name for the $type
public static getTypeName ( integer $type ) : string
$type integer
return string
Example #1
0
 /**
  * @return string
  */
 public function getTypeName()
 {
     return Types::getTypeName($this->type);
 }
Example #2
0
 /**
  * Returns debug info.
  *
  * @return array
  */
 public function __debugInfo()
 {
     return ['type' => \PHPSA\Compiler\Types::getTypeName($this->type), 'value' => $this->value];
 }