original_string: public function toArray(): array
      {
          $data = ReflectionUtil::objToSnakeArray($this, static::blacklist());
          foreach ($this->renamed as $name => $newName) {
              if (!array_key_exists($name, $data)) {
                  continue;
              }
              $data[$newName] = $data[$name];
              unset($data[$name]);
          }
  
          return $data;
      }
code: public function toArray(): array
      {
          $data = ReflectionUtil::objToSnakeArray($this, static::blacklist());
          foreach ($this->renamed as $name => $newName) {
              if (!array_key_exists($name, $data)) {
                  continue;
              }
              $data[$newName] = $data[$name];
              unset($data[$name]);
          }
  
          return $data;
      }
code_tokens: public function toArray ( ) : array { $ data = ReflectionUtil :: objToSnakeArray ( $ this , static :: blacklist ( ) ) ; foreach ( $ this -> renamed as $ name => $ newName ) { if ( ! array_key_exists ( $ name , $ data ) ) { continue ; } $ data [ $ newName ] = $ data [ $ name ] ; unset ( $ data [ $ name ] ) ; } return $ data ; }
docstring: Return the object as Array.
  
  @return array
  @throws \ReflectionException
docstring_tokens: Return the object as Array .