original_string: public function toArray()
      {
          $classData = [];
          foreach ($this->getReflector()->getProperties(\ReflectionProperty::IS_PROTECTED) as $reflectionProperty) {
              if (!$reflectionProperty->isStatic()) {
                  $reflectionProperty->setAccessible(true);
                  $classData[$reflectionProperty->getName()] = $reflectionProperty->getValue($this);
              }
          }
          return $classData;
      }
code: public function toArray()
      {
          $classData = [];
          foreach ($this->getReflector()->getProperties(\ReflectionProperty::IS_PROTECTED) as $reflectionProperty) {
              if (!$reflectionProperty->isStatic()) {
                  $reflectionProperty->setAccessible(true);
                  $classData[$reflectionProperty->getName()] = $reflectionProperty->getValue($this);
              }
          }
          return $classData;
      }
code_tokens: public function toArray ( ) { $ classData = [ ] ; foreach ( $ this -> getReflector ( ) -> getProperties ( \ ReflectionProperty :: IS_PROTECTED ) as $ reflectionProperty ) { if ( ! $ reflectionProperty -> isStatic ( ) ) { $ reflectionProperty -> setAccessible ( true ) ; $ classData [ $ reflectionProperty -> getName ( ) ] = $ reflectionProperty -> getValue ( $ this ) ; } } return $ classData ; }
docstring: Fetch the array representation of the protected properties of an object.
  @return array
docstring_tokens: Fetch the array representation of the protected properties of an object .