fork download
  1. <?php
  2. interface Authenticable {
  3. // métodos
  4. }
  5. interface Model {
  6. // métodos
  7. }
  8. class Person implements Authenticable, Model {
  9. // métodos
  10. }
  11. $pessoa = new Person();
  12. if ($pessoa instanceof Model) {
  13. echo "implementa Model";
  14. }
  15. if ($pessoa instanceof Cloneable) {
  16. echo "implementa Cloneable";
  17. }
Success #stdin #stdout 0s 52488KB
stdin
Standard input is empty
stdout
implementa Model