Missing_Method::for_class()public staticYoast 1.0

Creates exception for a method that does not exist in a class.

Метод класса: Missing_Method{}

Хуков нет.


static. Instance of the exception.


$result = Missing_Method::for_class( $method, $class_name );
$method(строка) (обязательный)
The method that does not exist.
$class_name(строка) (обязательный)
The class name.

Код Missing_Method::for_class() Yoast 22.7

public static function for_class( $method, $class_name ) {
	return new static(
			/* translators: %1$s expands to the method name. %2$s expands to the class name */
			\__( 'Method %1$s() does not exist in class %2$s', 'wordpress-seo' ),