/** * 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(); }
/** * 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); }
/** * 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()); }
/** * Constructor. * * @param string $functionName Function name * @param \TokenReflection\Broker $broker Reflection broker */ public function __construct($functionName, Broker $broker) { parent::__construct($functionName); $this->broker = $broker; }
public function __construct($name) { parent::__construct($this->value = $name); }
/** * Implementation of internal reflection initialization * * @return void */ protected function __initialize() { parent::__construct($this->getName()); }
public function __construct($name) { parent::__construct($name); $this->annotation = Notoj::parseDocComment($this); }
/** * * @param string $name */ public function __construct($name) { parent::__construct($name); $this->process(); }
extends\ReflectionFunction{private$value;function __construct($name){parent::__construct($this->value=$name);}function
public function __construct($func) { parent::__construct($func); $this->annotations = array(); $this->extractAnnotations(); }
public function __construct($name) { parent::__construct($name); $this->comments = PicoraDocumentation::arrayFromDocComment($this->getDocComment()); $this->comments['name'] = $name; $this->comments['file'] = $this->getFileName(); }