WordPress at a glance
class is not described

Text_Diff_Op_copy{} WP 1.0

Хуков нет.

Возвращает

Null. Ничего.

Использование

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

Methods

  1. __construct( $orig, $final = false )
  2. reverse()
  3. Text_Diff_Op_copy( $orig, $final = false )

Заметки

  • Package: Text_Diff

Код Text_Diff_Op_copy{} WP 5.5.1

<?php
class Text_Diff_Op_copy extends Text_Diff_Op {

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

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

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

}