GraphQL\Type\Definition\ObjectType::implementsInterface PHP Méthode

implementsInterface() public méthode

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