mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-31 04:58:28 +08:00
30 lines
645 B
PHP
30 lines
645 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;
|
|
}
|