Skip to content

Commit 18f0c75

Browse files
authored
Merge pull request #9 from greg0ire/interface_suffix
Suffix interfaces with "Interface"
2 parents cefa3c3 + e08b685 commit 18f0c75

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
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: 4 additions & 4 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
*/
@@ -25,9 +25,9 @@ public function get($id);
2525
/**
2626
* Returns true if the container can return an entry for the given identifier.
2727
* Returns false otherwise.
28-
*
28+
*
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)