Ejemplo n.º 1
0
 /**
  * Returns the property of the reflected class and all of its parents
  * (This last point is the main difference with the PHP reflection).
  * Filter is the same as \ReflectionProperty of PHP reflection:
  * You can use these constants or use AttributeReflection constants.
  *
  * @param int $filter
  * @return PropertyReflection[]
  */
 public function getReflectionProperties($filter = AttributeReflection::NO_FILTER)
 {
     $result = array();
     foreach ($this->extractProperties($this->getReflector(), $filter) as $key => $reflectedProperty) {
         $result[$key] = PropertyReflection::instantiate($reflectedProperty);
     }
     return $result;
 }