$method( ...$params ); } catch ( BadMethodCallException $e ) { static::throwBadMethodCallException( $method ); } } /** * Throw a bad method call exception for the given method. * * @param string $method * @return void * * @throws \BadMethodCallException */ protected static function throwBadMethodCallException( $method ) { throw new BadMethodCallException( sprintf( esc_html__( 'Call to undefined method %s::%s()', 'timetics' ), static::class, $method ) ); } }