コード例 #1
0
 /**
  * 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
0
 /**
  * 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
0
 /**
  * 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
0
 /**
  * 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
0
ファイル: GlobalFunction.php プロジェクト: nette/reflection
 public function __construct($name)
 {
     parent::__construct($this->value = $name);
 }
コード例 #6
0
 /**
  * Implementation of internal reflection initialization
  *
  * @return void
  */
 protected function __initialize()
 {
     parent::__construct($this->getName());
 }
コード例 #7
0
ファイル: ReflectionFunction.php プロジェクト: agpmedia/notoj
 public function __construct($name)
 {
     parent::__construct($name);
     $this->annotation = Notoj::parseDocComment($this);
 }
コード例 #8
0
ファイル: Function.php プロジェクト: nebiros/yasc
 /**
  *
  * @param string $name
  */
 public function __construct($name)
 {
     parent::__construct($name);
     $this->process();
 }
コード例 #9
0
ファイル: loader.php プロジェクト: JanTvrdik/NetteExtras
extends\ReflectionFunction{private$value;function
__construct($name){parent::__construct($this->value=$name);}function
コード例 #10
0
 public function __construct($func)
 {
     parent::__construct($func);
     $this->annotations = array();
     $this->extractAnnotations();
 }
コード例 #11
0
 public function __construct($name)
 {
     parent::__construct($name);
     $this->comments = PicoraDocumentation::arrayFromDocComment($this->getDocComment());
     $this->comments['name'] = $name;
     $this->comments['file'] = $this->getFileName();
 }