Done !
| Server IP : 46.105.57.169 / Your IP : 216.73.216.67 Web Server : Apache System : Linux webm002.cluster120.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : verseaumee ( 152031) PHP Version : 8.5.7 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/verseaumee/maze/wp-content/plugins/pinterest-for-woocommerce/src/Exception/ |
Upload File : |
<?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
)
);
}
}