Yoast\WP\SEO\Exceptions
Missing_Method::for_class
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() Missing Method::for class Yoast 27.7
public static function for_class( $method, $class_name ) {
return new static(
\sprintf(
/* 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' ),
$method,
$class_name,
),
);
}