public function hasInterface($interface): bool {
		if ($interface instanceof PhpInterface) {
			return $this->interfaces->contains($interface->getName())
				|| $this->interfaces->contains($interface->getQualifiedName());
		}

		return $this->interfaces->contains($interface) || $this->hasInterface(new PhpInterface($interface));
	}
public function hasInterface($interface): bool {
		if ($interface instanceof PhpInterface) {
			return $this->interfaces->contains($interface->getName())
				|| $this->interfaces->contains($interface->getQualifiedName());
		}

		return $this->interfaces->contains($interface) || $this->hasInterface(new PhpInterface($interface));
	}
public function hasInterface ( $ interface ) : bool { if ( $ interface instanceof PhpInterface ) { return $ this -> interfaces -> contains ( $ interface -> getName ( ) ) || $ this -> interfaces -> contains ( $ interface -> getQualifiedName ( ) ) ; } return $ this -> interfaces -> contains ( $ interface ) || $ this -> hasInterface ( new PhpInterface ( $ interface ) ) ; }
Checks whether an interface exists

@param PhpInterface|string $interface interface name or instance
@return bool
Checks whether an interface exists