Author: Gusakov Nikita (dev@nkt.me)
コード例 #1
0
ファイル: MethodDocBlock.php プロジェクト: phalcon/zephir
 public function __construct(ClassMethod $method, AliasManager $aliasManager, $indent = '    ')
 {
     parent::__construct($method->getDocBlock(), $indent);
     $this->deprecated = $method->isDeprecated();
     $this->aliasManager = $aliasManager;
     $this->shortcutName = $method->isShortcut() ? $method->getShortcutName() : '';
     $this->parseMethodParameters($method);
     $this->parseLines();
     $this->parseMethodReturnType($method);
     $this->appendParametersLines();
     if (!empty($this->return)) {
         $this->appendReturnLine();
     }
 }
コード例 #2
0
ファイル: MethodDocBlock.php プロジェクト: NumbDai/zephir
 public function __construct(ClassMethod $method, $indent = 4)
 {
     parent::__construct($method->getDocBlock(), $indent);
     $this->parseMethodParameters($method);
     $this->parseLines();
     if (!$this->return) {
         $this->parseMethodReturnType($method);
     }
     if ($this->parameters) {
         $this->appendParametersLines();
     }
     if ($this->return) {
         $this->appendReturnLine();
     }
 }