original_string: 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()));
      }
code: 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()));
      }
code_tokens: 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 ( ) ) ) ; }
docstring: Gets the DocBlock from a property.
  
  @param string $class
  @param string $property
  
  @return DocBlock|null
docstring_tokens: Gets the DocBlock from a property .