| Total Complexity | 4 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | final class GitCommit implements HistoryMarker |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | private $gitSha; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @throws InvalidHistoryMarkerException |
||
| 27 | */ |
||
| 28 | public function __construct(string $gitSha) |
||
| 34 | } |
||
| 35 | |||
| 36 | public function asString(): string |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Validates the string provided could be a valid git SHA. |
||
| 43 | */ |
||
| 44 | public static function validateGitSha(string $gitSha): bool |
||
| 49 |