Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class AAA{}
- class BBB extends AAA{}
- class X{
- protected AAA $foo;
- function __construct(AAA $foo){
- $this->foo = $foo;
- }
- }
- class Y extends X{
- protected BBB $foo;
- function __construct(BBB $foo){
- parent::__construct($foo);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement