WordPress at a glance
class is not described

Text_Diff_Op_add{} WP 1.0

No Hooks.

Return

Null. Nothing.

Usage

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

Methods

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

Notes

  • Package: Text_Diff

Code of Text_Diff_Op_add{} WP 5.5.1

<?php
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;
    }

}