Example #1
0
 /**
  * Return PHP type of the element.
  *
  * @return string
  */
 public function getPhpType()
 {
     if (!$this->phpType) {
         $this->phpType = '' . $this->elem->type;
         if ($this->phpType !== '') {
             $this->phpType = $this->phpType . ' ';
         }
     }
     return Tools::fixTypeHint($this->phpType);
 }
Example #2
0
 /**
  * Get tag type.
  *
  * @return string The one of self::TYPE_* constants
  */
 public function getType()
 {
     switch ($this->getName()) {
         case self::TYPE_AUTHOR:
             $type = self::TYPE_AUTHOR;
             break;
         case self::TYPE_PARAM:
             $type = self::TYPE_PARAM;
             break;
         case self::TYPE_VAR:
             $type = Tools::fixTypeHint('' . $this->elem->type);
             break;
         default:
             $type = self::TYPE_UNKNOWN;
     }
     return $type;
 }