Файловый менеджер - Редактировать - /home/harasnat/www/horse/wp-content/plugins/pinterest-for-woocommerce/src/Exception/InvalidClass.php
Назад
<?php /** * Class InvalidClass * * @package Automattic\WooCommerce\Pinterest\Exception */ declare( strict_types=1 ); namespace Automattic\WooCommerce\Pinterest\Exception; use LogicException; /** * Class InvalidClass */ class InvalidClass extends LogicException implements PinterestException { /** * Create a new instance of the exception when a class should implement an interface but does not. * * @param string $class The class name. * @param string $interface The interface name. * * @return static */ public static function should_implement( string $class, string $interface ) { return new static( sprintf( 'The class "%s" must implement the "%s" interface.', $class, $interface ) ); } /** * Create a new instance of the exception when a class should NOT implement an interface but it does. * * @param string $class The class name. * @param string $interface The interface name. * * @return static */ public static function should_not_implement( string $class, string $interface ): InvalidClass { return new static( sprintf( 'The class "%s" must NOT implement the "%s" interface.', $class, $interface ) ); } /** * Create a new instance of the exception when a class should override a method but does not. * * @param string $class The class name. * @param string $method The method name. * * @return static */ public static function should_override( string $class, string $method ) { return new static( sprintf( 'The class "%s" must override the "%s()" method.', $class, $method ) ); } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Генерация страницы: 0.03 |
proxy
|
phpinfo
|
Настройка