original_string: public function copyPalette($source)
      {
          if( ! is_resource($source) )
          {
              throw new InvalidArgumentException(NULL, '[resource]');
          }
  
          imagepalettecopy($this->canvas, $source);
      }
code: public function copyPalette($source)
      {
          if( ! is_resource($source) )
          {
              throw new InvalidArgumentException(NULL, '[resource]');
          }
  
          imagepalettecopy($this->canvas, $source);
      }
code_tokens: public function copyPalette ( $ source ) { if ( ! is_resource ( $ source ) ) { throw new InvalidArgumentException ( NULL , '[resource]' ) ; } imagepalettecopy ( $ this -> canvas , $ source ) ; }
docstring: Get copy palette
  
  @param resource $source
  
  @return resource
docstring_tokens: Get copy palette