Added inline documentation.

This commit is contained in:
Andrey Savchenko committed 2018-02-14 17:54:28 +02:00
1 parent d850fa1b02
commit 8cd280f12a
20 files changed
+175 -29

No files matched your search

+10
View File
@@ -14,8 +14,12 @@ use Rarst\Laps\Provider\Record_Provider;
*/
class Plugin extends Container {
/** @var array $providers */
protected $providers = [];
/**
* @param array $values Configuration values to apply.
*/
public function __construct( array $values = [] ) {
parent::__construct();
@@ -38,6 +42,12 @@ class Plugin extends Container {
}
}
/**
* @param ServiceProviderInterface $provider Provider.
* @param array $values Optional configuration.
*
* @return $this|static
*/
public function register( ServiceProviderInterface $provider, array $values = [] ) {
$this->providers[] = $provider;