1 | <?php |
||
10 | class GithubCommitSha implements Identifier |
||
11 | { |
||
12 | /** @var string */ |
||
13 | private $commitSha; |
||
14 | |||
15 | /** |
||
16 | * BranchId constructor. |
||
17 | * |
||
18 | * @param $commitSha |
||
19 | */ |
||
20 | public function __construct(string $commitSha) |
||
24 | |||
25 | /** |
||
26 | * @return string |
||
27 | */ |
||
28 | public function getId() : string |
||
32 | |||
33 | /** |
||
34 | * @return string |
||
35 | */ |
||
36 | public function __toString() : string |
||
40 | } |
||
41 |