本文整理汇总了PHP中ReflectionFunction::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP ReflectionFunction::__construct方法的具体用法?PHP ReflectionFunction::__construct怎么用?PHP ReflectionFunction::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ReflectionFunction
的用法示例。
在下文中一共展示了ReflectionFunction::__construct方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* Constructor
*
* @param string $name
* @access public
* @return void
*/
public function __construct($name)
{
parent::__construct($name);
// get the annotations
$parser = new AnnotationParser($this->getDocComment());
$this->annotations = $parser->getAnnotationArray();
}
示例2: __construct
/**
* Constructs a new ReflectionFunction object.
*
* @param string $function
* @throws ReflectionException
* @return ReflectionFunction
*/
public final function __construct($function)
{
$bt = debug_backtrace();
if (!isset($bt[1]['class']) || $bt[1]['class'] !== __CLASS__) {
throw new ReflectionException('ReflectionClass\' constructor cannot be called from outside the class');
}
parent::__construct($function);
}
示例3: __construct
/**
* Constructs a new ezcReflectionFunction object
*
* Throws an Exception in case the given function does not exist
* @param string|ReflectionFunction $function
* Name or ReflectionFunction object of the function to be reflected
*/
public function __construct($function)
{
if (!$function instanceof ReflectionFunction) {
parent::__construct($function);
}
$this->reflectionSource = $function;
$this->docParser = ezcReflection::getDocCommentParser();
$this->docParser->parse($this->getDocComment());
}
示例4: __construct
/**
* Constructor.
*
* @param string $functionName Function name
* @param \TokenReflection\Broker $broker Reflection broker
*/
public function __construct($functionName, Broker $broker)
{
parent::__construct($functionName);
$this->broker = $broker;
}
示例5: __construct
public function __construct($name)
{
parent::__construct($this->value = $name);
}
示例6: __initialize
/**
* Implementation of internal reflection initialization
*
* @return void
*/
protected function __initialize()
{
parent::__construct($this->getName());
}
示例7: __construct
public function __construct($name)
{
parent::__construct($name);
$this->annotation = Notoj::parseDocComment($this);
}
示例8: __construct
/**
*
* @param string $name
*/
public function __construct($name)
{
parent::__construct($name);
$this->process();
}
示例9:
extends\ReflectionFunction{private$value;function
__construct($name){parent::__construct($this->value=$name);}function
示例10: __construct
public function __construct($func)
{
parent::__construct($func);
$this->annotations = array();
$this->extractAnnotations();
}
示例11: __construct
public function __construct($name)
{
parent::__construct($name);
$this->comments = PicoraDocumentation::arrayFromDocComment($this->getDocComment());
$this->comments['name'] = $name;
$this->comments['file'] = $this->getFileName();
}