<?php
interface Authenticable {
// métodos
}
interface Model {
// métodos
}
class Person implements Authenticable, Model {
// métodos
}
$pessoa = new Person();
if ($pessoa instanceof Model) {
echo "implementa Model";
}
if ($pessoa instanceof Cloneable) {
echo "implementa Cloneable";
}
PD9waHAKaW50ZXJmYWNlIEF1dGhlbnRpY2FibGUgewogICAgIC8vIG3DqXRvZG9zCn0KaW50ZXJmYWNlIE1vZGVsIHsKICAgIC8vIG3DqXRvZG9zCn0KY2xhc3MgUGVyc29uIGltcGxlbWVudHMgQXV0aGVudGljYWJsZSwgTW9kZWwgewogICAvLyBtw6l0b2Rvcwp9CiRwZXNzb2EgPSBuZXcgUGVyc29uKCk7CmlmICgkcGVzc29hIGluc3RhbmNlb2YgTW9kZWwpIHsKICAgIGVjaG8gImltcGxlbWVudGEgTW9kZWwiOwp9CmlmICgkcGVzc29hIGluc3RhbmNlb2YgQ2xvbmVhYmxlKSB7CiAgICBlY2hvICJpbXBsZW1lbnRhIENsb25lYWJsZSI7Cn0=