private function getDocBlockFromProperty($class, $property)
    {
        // Use a ReflectionProperty instead of $class to get the parent class if applicable
        try {
            $reflectionProperty = new \ReflectionProperty($class, $property);
        } catch (\ReflectionException $e) {
            return;
        }

        return $this->docBlockFactory->create($reflectionProperty, $this->contextFactory->createFromReflector($reflectionProperty->getDeclaringClass()));
    }
private function getDocBlockFromProperty($class, $property)
    {
        // Use a ReflectionProperty instead of $class to get the parent class if applicable
        try {
            $reflectionProperty = new \ReflectionProperty($class, $property);
        } catch (\ReflectionException $e) {
            return;
        }

        return $this->docBlockFactory->create($reflectionProperty, $this->contextFactory->createFromReflector($reflectionProperty->getDeclaringClass()));
    }
private function getDocBlockFromProperty ( $ class , $ property ) { // Use a ReflectionProperty instead of $class to get the parent class if applicable try { $ reflectionProperty = new \ ReflectionProperty ( $ class , $ property ) ; } catch ( \ ReflectionException $ e ) { return ; } return $ this -> docBlockFactory -> create ( $ reflectionProperty , $ this -> contextFactory -> createFromReflector ( $ reflectionProperty -> getDeclaringClass ( ) ) ) ; }
Gets the DocBlock from a property.

@param string $class
@param string $property

@return DocBlock|null
Gets the DocBlock from a property .