Skip to content

Commit 9ba1b6b

Browse files
greg0ireGrégoire Paris
authored andcommitted
Suffix interfaces with "Interface"
This is what is specified. Fixes #8
1 parent cefa3c3 commit 9ba1b6b

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/ContainerException.php renamed to src/ContainerExceptionInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
/**
99
* Base interface representing a generic exception in a container.
1010
*/
11-
interface ContainerException
11+
interface ContainerExceptionInterface
1212
{
1313
}

src/ContainerInterface.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ interface ContainerInterface
1515
*
1616
* @param string $id Identifier of the entry to look for.
1717
*
18-
* @throws NotFoundException No entry was found for this identifier.
19-
* @throws ContainerException Error while retrieving the entry.
18+
* @throws NotFoundExceptionInterface No entry was found for this identifier.
19+
* @throws ContainerExceptionInterface Error while retrieving the entry.
2020
*
2121
* @return mixed Entry.
2222
*/
@@ -27,7 +27,7 @@ public function get($id);
2727
* Returns false otherwise.
2828
*
2929
* `has($id)` returning true does not mean that `get($id)` will not throw an exception.
30-
* It does however mean that `get($id)` will not throw a `NotFoundException`.
30+
* It does however mean that `get($id)` will not throw a `NotFoundExceptionInterface`.
3131
*
3232
* @param string $id Identifier of the entry to look for.
3333
*

src/NotFoundException.php renamed to src/NotFoundExceptionInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
/**
99
* No entry was found in the container.
1010
*/
11-
interface NotFoundException extends ContainerException
11+
interface NotFoundExceptionInterface extends ContainerExceptionInterface
1212
{
1313
}

0 commit comments

Comments
 (0)