public function implementsInterface($iface) { $iface = Type::resolve($iface); return !!Utils::find($this->getInterfaces(), function ($implemented) use($iface) { return $iface === $implemented; }); }