This repository has been archived by the owner on Aug 2, 2022. It is now read-only.
forked from sebastianbergmann/diff
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
52 changed files
with
5,698 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
<?php | ||
/* | ||
* This file is part of sebastian/diff. | ||
* | ||
* (c) Sebastian Bergmann <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace PhpCsFixer\Diff\v3_0; | ||
|
||
final class Chunk | ||
{ | ||
/** | ||
* @var int | ||
*/ | ||
private $start; | ||
|
||
/** | ||
* @var int | ||
*/ | ||
private $startRange; | ||
|
||
/** | ||
* @var int | ||
*/ | ||
private $end; | ||
|
||
/** | ||
* @var int | ||
*/ | ||
private $endRange; | ||
|
||
/** | ||
* @var array | ||
*/ | ||
private $lines; | ||
|
||
public function __construct($start = 0, $startRange = 1, $end = 0, $endRange = 1, array $lines = []) | ||
{ | ||
$this->start = $start; | ||
$this->startRange = $startRange; | ||
$this->end = $end; | ||
$this->endRange = $endRange; | ||
$this->lines = $lines; | ||
} | ||
|
||
public function getStart() | ||
{ | ||
return $this->start; | ||
} | ||
|
||
public function getStartRange() | ||
{ | ||
return $this->startRange; | ||
} | ||
|
||
public function getEnd() | ||
{ | ||
return $this->end; | ||
} | ||
|
||
public function getEndRange() | ||
{ | ||
return $this->endRange; | ||
} | ||
|
||
public function getLines() | ||
{ | ||
return $this->lines; | ||
} | ||
|
||
public function setLines(array $lines) | ||
{ | ||
$this->lines = $lines; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
<?php | ||
/* | ||
* This file is part of sebastian/diff. | ||
* | ||
* (c) Sebastian Bergmann <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace PhpCsFixer\Diff\v3_0; | ||
|
||
final class Diff | ||
{ | ||
/** | ||
* @var string | ||
*/ | ||
private $from; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
private $to; | ||
|
||
/** | ||
* @var Chunk[] | ||
*/ | ||
private $chunks; | ||
|
||
/** | ||
* @param string $from | ||
* @param string $to | ||
* @param Chunk[] $chunks | ||
*/ | ||
public function __construct($from, $to, array $chunks = []) | ||
{ | ||
$this->from = $from; | ||
$this->to = $to; | ||
$this->chunks = $chunks; | ||
} | ||
|
||
public function getFrom() | ||
{ | ||
return $this->from; | ||
} | ||
|
||
public function getTo() | ||
{ | ||
return $this->to; | ||
} | ||
|
||
/** | ||
* @return Chunk[] | ||
*/ | ||
public function getChunks() | ||
{ | ||
return $this->chunks; | ||
} | ||
|
||
/** | ||
* @param Chunk[] $chunks | ||
*/ | ||
public function setChunks(array $chunks) | ||
{ | ||
$this->chunks = $chunks; | ||
} | ||
} |
Oops, something went wrong.