-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Output analysed files count & elapsed time (#32)
- Loading branch information
Showing
5 changed files
with
119 additions
and
14 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,51 @@ | ||
<?php declare(strict_types = 1); | ||
|
||
namespace ShipMonk\NameCollision; | ||
|
||
class DetectionResult | ||
{ | ||
|
||
/** | ||
* @var int | ||
*/ | ||
private $analysedFilesCount; | ||
|
||
/** | ||
* @var int | ||
*/ | ||
private $excludedFilesCount; | ||
|
||
/** | ||
* @var array<string, list<FileLine>> | ||
*/ | ||
private $collisions; | ||
|
||
/** | ||
* @param array<string, list<FileLine>> $collisions | ||
*/ | ||
public function __construct(int $analysedFilesCount, int $excludedFilesCount, array $collisions) | ||
{ | ||
$this->analysedFilesCount = $analysedFilesCount; | ||
$this->excludedFilesCount = $excludedFilesCount; | ||
$this->collisions = $collisions; | ||
} | ||
|
||
public function getAnalysedFilesCount(): int | ||
{ | ||
return $this->analysedFilesCount; | ||
} | ||
|
||
public function getExcludedFilesCount(): int | ||
{ | ||
return $this->excludedFilesCount; | ||
} | ||
|
||
/** | ||
* @return array<string, list<FileLine>> | ||
*/ | ||
public function getCollisions(): array | ||
{ | ||
return $this->collisions; | ||
} | ||
|
||
} |
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