Created
May 12, 2017 14:17
-
-
Save IgorDePaula/e0d20c4528318dbbebb75661d9d0f4b5 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
<?php | |
interface Data{ | |
} | |
interface Key extends Data{ | |
} | |
interface Value extends Data{ | |
} | |
abstract class Teste{ | |
public function meToo(Data $data) | |
{ | |
} | |
} | |
class MeToo extends Teste{ | |
public function meToo(Key $data) | |
{ | |
} | |
} | |
class KeyClass implements Key { | |
} | |
$mt = new MeToo(); | |
$mt->meToo(new KeyClass()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment