automatewoo/includes/Jobs/Traits/ValidateItemAsIntegerId.php
fei-source 47d3c9a8b6 Update to v6.2.2
Source: GrootMade/Festinger Vault
2026-03-15 08:31:15 +08:00

27 lines
458 B
PHP

<?php
namespace AutomateWoo\Jobs\Traits;
use AutomateWoo\Exceptions\InvalidArgument;
use AutomateWoo\Traits\IntegerValidator;
/**
* Trait ValidateItemAsIntegerId
*
* @since 5.1.0
*/
trait ValidateItemAsIntegerId {
use IntegerValidator;
/**
* Validate an item.
*
* @param mixed $item
*
* @throws InvalidArgument If the item is not valid.
*/
protected function validate_item( $item ) {
$this->validate_positive_integer( $item );
}
}