public function implementsInterface($interfaceName) { if (!is_string($interfaceName)) { throw NotAString::fromNonString($interfaceName); } return in_array(ltrim($interfaceName, '\\'), $this->getInterfaceNames(), true); }
public function implementsInterface(string $className) : bool { return $this->reflectionClass->implementsInterface($className); }