2017 © Pedro Peláez
 

library ide-helper

ide helper, 生成PHP中的类, 函数, 常量, 等的代码结构, 以便ide能提示自动完成. 比如生成 phalcon框架, mongodb扩展的PHP代码

image

wqy/ide-helper

ide helper, 生成PHP中的类, 函数, 常量, 等的代码结构, 以便ide能提示自动完成. 比如生成 phalcon框架, mongodb扩展的PHP代码

  • Monday, May 7, 2018
  • by windqyoung
  • Repository
  • 1 Watchers
  • 0 Stars
  • 23 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 9 Versions
  • 15 % Grown

The README.md

ide-helper

生成扩展里面的类,函数,常量代码, 让ide能自动完成., (*1)

用法示例

以下为生成的 Swow扩展 Swow\Coroutine 类 php bin\code.php -eswow, (*2)

<?php

namespace Swow {


    class Coroutine
    {

        public const STATE_NONE = 0;


        public const STATE_WAITING = 1;


        public const STATE_RUNNING = 2;


        public const STATE_DEAD = 3;



        public function __construct(callable $callable)
        {
        }


        public static function run(callable $callable, mixed ...$data) : static 
        {

            $rt = null;
            return $rt;
        }


        public function resume(mixed ...$data) : mixed 
        {

            $rt = null;
            return $rt;
        }


        public static function yield(mixed $data = NULL) : mixed 
        {

            $rt = null;
            return $rt;
        }


        public function getId() : int 
        {

            $rt = 1;
            return $rt;
        }


        public static function getCurrent() : \Swow\Coroutine|static 
        {

            $rt = null;
            return $rt;
        }


        public static function getMain() : \Swow\Coroutine|static 
        {

            $rt = null;
            return $rt;
        }


        public function getPrevious() : \Swow\Coroutine|static 
        {

            $rt = $this;
            return $rt;
        }


        public function getState() : int 
        {

            $rt = 1;
            return $rt;
        }


        public function getStateName() : string 
        {

            $rt = "";
            return $rt;
        }


        public function getSwitches() : int 
        {

            $rt = 1;
            return $rt;
        }


        public static function getGlobalSwitches() : int 
        {

            $rt = 1;
            return $rt;
        }


        public function getElapsed() : int 
        {

            $rt = 1;
            return $rt;
        }


        public function getElapsedAsString() : string 
        {

            $rt = "";
            return $rt;
        }


        public function getExitStatus() : int 
        {

            $rt = 1;
            return $rt;
        }


        public function isAvailable() : bool 
        {

            $rt = true;
            return $rt;
        }


        public function isAlive() : bool 
        {

            $rt = true;
            return $rt;
        }


        public function isExecuting() : bool 
        {

            $rt = true;
            return $rt;
        }


        public function getExecutedFilename(int $level = 0) : string 
        {

            $rt = "";
            return $rt;
        }


        public function getExecutedLineno(int $level = 0) : int 
        {

            $rt = 1;
            return $rt;
        }


        public function getExecutedFunctionName(int $level = 0) : string 
        {

            $rt = "";
            return $rt;
        }


        public function getTrace(int $level = 0, int $limit = 0, int $options = \DEBUG_BACKTRACE_PROVIDE_OBJECT) : array 
        {

            $rt = [];
            return $rt;
        }


        public function getTraceAsString(int $level = 0, int $limit = 0, int $options = \DEBUG_BACKTRACE_PROVIDE_OBJECT) : string 
        {

            $rt = "";
            return $rt;
        }


        public function getTraceAsList(int $level = 0, int $limit = 0, int $options = \DEBUG_BACKTRACE_PROVIDE_OBJECT) : array 
        {

            $rt = [];
            return $rt;
        }


        public function getTraceDepth(int $limit = 0) : int 
        {

            $rt = 1;
            return $rt;
        }


        public function getDefinedVars(int $level = 0) : array 
        {

            $rt = [];
            return $rt;
        }


        public function setLocalVar(string $name, mixed $value, int $level = 0, bool $force = true) : static 
        {

            $rt = $this;
            return $rt;
        }


        public function eval(string $string, int $level = 0) : mixed 
        {

            $rt = null;
            return $rt;
        }


        public function call(callable $callable, int $level = 0) : mixed 
        {

            $rt = null;
            return $rt;
        }


        public function throw(\Throwable $throwable) : mixed 
        {

            $rt = null;
            return $rt;
        }


        public function kill() : void 
        {
        }


        public static function killAll() : void 
        {
        }


        public static function count() : int 
        {

            $rt = 1;
            return $rt;
        }


        public static function get(int $id) : ?static 
        {

            $rt = null;
            return $rt;
        }


        public static function getAll() : array 
        {

            $rt = [];
            return $rt;
        }


        public function __debugInfo() : array 
        {

            $rt = [];
            return $rt;
        }


        public static function registerDeadlockHandler(callable $callable) : \Swow\Utils\Handler 
        {

            $rt = null;
            return $rt;
        }
    }

}

The Versions

07/05 2018

v1.0.8

1.0.8.0

ide helper, 生成PHP中的类, 函数, 常量, 等的代码结构, 以便ide能提示自动完成. 比如生成 phalcon框架, mongodb扩展的PHP代码

  Sources   Download

MIT

by windsor

29/03 2018

dev-master

9999999-dev

ide helper, 生成PHP中的类, 函数, 常量, 等的代码结构, 以便ide能提示自动完成. 比如生成 phalcon框架, mongodb扩展的PHP代码

  Sources   Download

MIT

by windsor

29/03 2018

v1.0.7

1.0.7.0

ide helper, 生成PHP中的类, 函数, 常量, 等的代码结构, 以便ide能提示自动完成. 比如生成 phalcon框架, mongodb扩展的PHP代码

  Sources   Download

MIT

by windsor

29/03 2018

v1.0.6

1.0.6.0

ide helper

  Sources   Download

by windsor

08/03 2018

v1.0.5

1.0.5.0

ide helper

  Sources   Download

by windsor

05/03 2018

v1.0.4

1.0.4.0

ide helper

  Sources   Download

by windsor

03/03 2018

v1.0.3

1.0.3.0

ide helper

  Sources   Download

by windsor

03/03 2018

v1.0.0

1.0.0.0

ide helper

  Sources   Download

by windsor

03/03 2018

v1.0.2

1.0.2.0

ide helper

  Sources   Download

by windsor