Skip to content
Snippets Groups Projects
Verified Commit 57f2cb77 authored by Bartek Jaskulski's avatar Bartek Jaskulski
Browse files

fix: accept more rich interface

parent 1fa23e66
Branches
Tags
2 merge requests!5feat: remove compilation command,!4feat: remove compilation command
......@@ -5,19 +5,20 @@ declare(strict_types=1);
namespace WPDesk\Init\Binding\Binder;
use WPDesk\Init\Binding\Binder;
use WPDesk\Init\Binding\ComposableBinder;
use WPDesk\Init\Binding\Definition;
use WPDesk\Init\Binding\Definition\HookableDefinition;
final class CompositeBinder implements Binder {
/** @var Binder[] */
/** @var ComposableBinder[] */
private $binders;
public function __construct( Binder ...$binders ) {
public function __construct( ComposableBinder ...$binders ) {
$this->binders = $binders;
}
public function add( Binder $binder ): void {
public function add( ComposableBinder $binder ): void {
$this->binders[] = $binder;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment