render = $render; } /** * Refuse a run-only method (a clamp, or a run notice) in render mode. * Called first, before any early return, so no input slips past it. * * @param string $method The calling method, as `__METHOD__`. * @return void * @throws \LogicException In render mode. */ private function refuseInRenderMode( string $method ): void { if ( $this->render ) { // phpcs:ignore WordPress.Security.EscapeOutput.ExceptionNotEscaped -- Developer-facing message naming a method, never printed. throw new \LogicException( $method . '() is run-only: a render-mode policy answers display reads only and must never decide a run.' ); } } }