Text_Diff_Op_change{}WP 1.0

This is an internal function for using it by WP core itself. It's not recommended to use this function in your code.

No Hooks.

Usage

$Text_Diff_Op_change = new Text_Diff_Op_change();
// use class methods

Methods

  1. public Text_Diff_Op_change( $orig, $final )
  2. public __construct( $orig, $final )
  3. public reverse()

Notes

  • Package: Text_Diff

Text_Diff_Op_change{} code WP 6.1.1

class Text_Diff_Op_change extends Text_Diff_Op {

	/**
	 * PHP5 constructor.
	 */
    function __construct( $orig, $final )
    {
        $this->orig = $orig;
        $this->final = $final;
    }

	/**
	 * PHP4 constructor.
	 */
	public function Text_Diff_Op_change( $orig, $final ) {
		self::__construct( $orig, $final );
	}

    function &reverse()
    {
        $reverse = new Text_Diff_Op_change($this->final, $this->orig);
        return $reverse;
    }

}