Last active
March 15, 2021 14:17
-
-
Save yawnston/5ea1f2e2f09d2e65d68921cf2a219fd4 to your computer and use it in GitHub Desktop.
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
// TEST CASE 1 | |
interface IA | |
{ | |
} | |
interface IB | |
{ | |
} | |
class ComponentA extends ComponentBase implements IA | |
{ | |
/** | |
* @inject IB | |
*/ | |
public $d; | |
public function __construct(ComponentB $b) | |
{ | |
parent::__construct(); | |
} | |
} | |
class ComponentB extends ComponentBase | |
{ | |
} | |
// TEST CASE 2 | |
interface IA | |
{ | |
} | |
interface IB | |
{ | |
} | |
class ComponentA extends ComponentBase implements IA | |
{ | |
/** | |
* @inject ComponentD | |
*/ | |
public $d; | |
public function __construct(IB $b) | |
{ | |
parent::__construct(); | |
} | |
} | |
class ComponentB extends ComponentBase | |
{ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment