Skip to content

Commit 192010e

Browse files
committed
refactore getName of Reference
1 parent ba19b89 commit 192010e

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

src/Gitonomy/Git/Reference.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,13 @@ public function __construct(Repository $repository, $fullname, $commitHash)
5656
$this->commitHash = $commitHash;
5757
}
5858

59+
/**
60+
* Returns the usual name of the reference.
61+
*
62+
* @return string
63+
*/
64+
abstract public function getName();
65+
5966
/**
6067
* Returns the fullname of the reference.
6168
*

src/Gitonomy/Git/Reference/Branch.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@
2222
class Branch extends Reference
2323
{
2424
/**
25-
* Returns the name of the branch.
26-
*
27-
* @return string
25+
* {@inheritdoc}
2826
*/
2927
public function getName()
3028
{

src/Gitonomy/Git/Reference/Tag.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@
2222
class Tag extends Reference
2323
{
2424
/**
25-
* Returns the name of the tag.
26-
*
27-
* @return string
25+
* {@inheritdoc}
2826
*/
2927
public function getName()
3028
{

0 commit comments

Comments
 (0)