original_string: protected function extractObjectData($value, $ref, $properties)
      {
          $data = array();
          foreach ($properties as $property) {
              try {
                  $propRef = $ref->getProperty($property);
                  $propRef->setAccessible(true);
                  $data[$property] = $propRef->getValue($value);
              } catch (ReflectionException $e) {
                  $data[$property] = $value->$property;
              }
          }
          return $data;
      }
code: protected function extractObjectData($value, $ref, $properties)
      {
          $data = array();
          foreach ($properties as $property) {
              try {
                  $propRef = $ref->getProperty($property);
                  $propRef->setAccessible(true);
                  $data[$property] = $propRef->getValue($value);
              } catch (ReflectionException $e) {
                  $data[$property] = $value->$property;
              }
          }
          return $data;
      }
code_tokens: protected function extractObjectData ( $ value , $ ref , $ properties ) { $ data = array ( ) ; foreach ( $ properties as $ property ) { try { $ propRef = $ ref -> getProperty ( $ property ) ; $ propRef -> setAccessible ( true ) ; $ data [ $ property ] = $ propRef -> getValue ( $ value ) ; } catch ( ReflectionException $ e ) { $ data [ $ property ] = $ value -> $ property ; } } return $ data ; }
docstring: Extract the object data
  
  @param  object          $value
  @param  ReflectionClass $ref
  @param  array           $properties
  @return array
docstring_tokens: Extract the object data