BetterReflection\Reflection\ReflectionObject::getProperties PHP Method

getProperties() public method

public getProperties ( )
    public function getProperties()
    {
        return array_merge($this->reflectionClass->getProperties(), $this->getRuntimeProperties());
    }

Usage Example

 /**
  * {@inheritDoc}
  */
 public function getProperties($filter = null)
 {
     $properties = $this->betterReflectionObject->getProperties();
     $wrappedProperties = [];
     foreach ($properties as $key => $property) {
         $wrappedProperties[$key] = new ReflectionProperty($property);
     }
     return $wrappedProperties;
 }