mirror of
https://gh.wpcy.net/https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2026-04-26 01:14:19 +08:00
28 lines
644 B
PHP
28 lines
644 B
PHP
<?php
|
|
|
|
declare (strict_types=1);
|
|
namespace WooCommerce\PayPalCommerce\Vendor\Dhii\Collection;
|
|
|
|
use RuntimeException;
|
|
/**
|
|
* Something that can check for the existence of an item.
|
|
*
|
|
* @since 0.2
|
|
*/
|
|
interface HasItemCapableInterface
|
|
{
|
|
/**
|
|
* Checks whether this instance has the given item.
|
|
*
|
|
* @since 0.2
|
|
*
|
|
* @param mixed $item The item to check for.
|
|
*
|
|
* @return bool True if the item exists; false otherwise.
|
|
*
|
|
* @throws RuntimeException If the existence of the item could not be verified.
|
|
*
|
|
* @psalm-suppress PossiblyUnusedMethod
|
|
*/
|
|
public function hasItem($item): bool;
|
|
}
|