🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-06-19 07:35:32 | PHP 8.1.34
📂
/ (Root)
/
home
/
therahul
/
reenrihair.com
/
wp-content
/
plugins
/
google-site-kit
/
includes
/
Core
/
Util
📍 /home/therahul/reenrihair.com/wp-content/plugins/google-site-kit/includes/Core/Util
🔄 Refresh
✏️
Editing: Method_Proxy_Trait.php
Writable
<?php /** * Class Google\Site_Kit\Core\Util\Method_Proxy_Trait * * @package Google\Site_Kit\Core\Util * @copyright 2021 Google LLC * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0 * @link https://sitekit.withgoogle.com */ namespace Google\Site_Kit\Core\Util; trait Method_Proxy_Trait { /** * Gets a proxy function for a class method. * * @since 1.17.0 * * @param string $method Method name. * @return callable A proxy function. */ private function get_method_proxy( $method ) { return function ( ...$args ) use ( $method ) { return $this->{ $method }( ...$args ); }; } /** * Gets a proxy function for a class method which can be executed only once. * * @since 1.24.0 * * @param string $method Method name. * @return callable A proxy function. */ private function get_method_proxy_once( $method ) { return function ( ...$args ) use ( $method ) { static $called; static $return_value; if ( ! $called ) { $called = true; $return_value = $this->{ $method }( ...$args ); } return $return_value; }; } }
💾 Save Changes
❌ Cancel