-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
189 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
|
||
namespace Amber\Container\Contracts; | ||
|
||
/** | ||
* Describes the interface of a service. | ||
*/ | ||
interface ServiceInterface | ||
{ | ||
/** | ||
* Gets the full namespace of the service. | ||
* | ||
* @return string The service's name. | ||
*/ | ||
public function getName(); | ||
|
||
/** | ||
* Gets the Service arguments. | ||
* | ||
* @param string $method The service's method. | ||
* | ||
* @return array | ||
*/ | ||
public function getParameters(string $method = '__construct'): array; | ||
|
||
/** | ||
* Gets an instance of the Reflection for the current class/closure. | ||
* | ||
* @return \Reflector | ||
*/ | ||
public function getReflection(): \Reflector; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.