original_string: public function copy()
      {
          $list = [];
          foreach ($this->getIterator() as $key => $value) {
              $list[$key] = \is_object($value) ? clone $value : $value;
          }
  
          return $this->createFrom($list);
      }
code: public function copy()
      {
          $list = [];
          foreach ($this->getIterator() as $key => $value) {
              $list[$key] = \is_object($value) ? clone $value : $value;
          }
  
          return $this->createFrom($list);
      }
code_tokens: public function copy ( ) { $ list = [ ] ; foreach ( $ this -> getIterator ( ) as $ key => $ value ) { $ list [ $ key ] = \ is_object ( $ value ) ? clone $ value : $ value ; } return $ this -> createFrom ( $ list ) ; }
docstring: Create a copy from this collection by cloning all objects in the collection.
  
  @return static
docstring_tokens: Create a copy from this collection by cloning all objects in the collection .