Ticket #111 (closed refactoring: fixed)
Reflection classes should allow other reflection instances as parameter on construction
| Reported by: | mikey | Owned by: | mikey |
|---|---|---|---|
| Priority: | major | Milestone: | 0.4.0 |
| Component: | ReflectionApi | Version: | SVN-trunk |
| Keywords: | Cc: |
Description
To save some performance it could be a good idea to allow other reflection instances as parameter on the constructor, e.g.:
<?php class stubReflectionMethod extends ReflectionMethod { ... public function __construct($class, $method) { if ($class instanceof ReflectionClass) { $this->class = $class; $this->className = $class->getName(); } else { $this->className = $class; } parent::__construct($this->className); } ... } ?>
Change History
Note: See
TracTickets for help on using
tickets.
