Skip to content

Commit b775523

Browse files
committed
additional return types;
1 parent d192342 commit b775523

File tree

3 files changed

+5
-17
lines changed

3 files changed

+5
-17
lines changed

src/Element.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,11 @@ interface Element
2121
{
2222
/**
2323
* Returns the Fqsen of the element.
24-
*
25-
* @return Fqsen
2624
*/
27-
public function getFqsen();
25+
public function getFqsen(): Fqsen;
2826

2927
/**
3028
* Returns the name of the element.
31-
*
32-
* @return string
3329
*/
34-
public function getName();
30+
public function getName(): string;
3531
}

src/File.php

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,16 @@ interface File
2121
{
2222
/**
2323
* Returns the content of the file as a string.
24-
*
25-
* @return string
2624
*/
27-
public function getContents();
25+
public function getContents(): string;
2826

2927
/**
3028
* Returns md5 hash of the file.
31-
*
32-
* @return string
3329
*/
34-
public function md5();
30+
public function md5(): string;
3531

3632
/**
3733
* Returns an relative path to the file.
38-
*
39-
* @return string
4034
*/
41-
public function path();
35+
public function path(): string;
4236
}

src/Project.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ interface Project
2121
{
2222
/**
2323
* Returns the name of the project.
24-
*
25-
* @return string
2624
*/
2725
public function getName(): string;
2826
}

0 commit comments

Comments
 (0)