public static function createForUncallableMethod(string $method) : \LogicException { return new \LogicException(sprintf('By its nature, "%s()" should not be called.', $method)); }
private function throwException(string $method) { throw LogicExceptionFactory::createForUncallableMethod($method); }