Text_Diff_Op_add{}WP 1.0

Internal function — this function is designed to be used by the kernel itself. It is not recommended to use this function in your code.

No Hooks.

Usage

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

Methods

  1. public Text_Diff_Op_add( $lines )
  2. public __construct( $lines )
  3. public reverse()

Notes

  • Package: Text_Diff

Text_Diff_Op_add{} code WP 6.5.2

class Text_Diff_Op_add extends Text_Diff_Op {

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

	/**
	 * PHP4 constructor.
	 */
	public function Text_Diff_Op_add( $lines ) {
		self::__construct( $lines );
	}

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

}