Your IP : 216.73.216.43


Current Path : /var/www/www.indacotrentino.com/www/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Helper/
Upload File :
Current File : //var/www/www.indacotrentino.com/www/vendor/php-amqplib/php-amqplib/PhpAmqpLib/Helper/Assert.php

<?php

namespace PhpAmqpLib\Helper;

use InvalidArgumentException;

class Assert
{
    /**
     * @param mixed $argument
     * @throws \InvalidArgumentException
     */
    public static function isCallable($argument)
    {
        if (!is_callable($argument)) {
            throw new InvalidArgumentException(sprintf(
                'Given argument "%s" should be callable. %s type was given.',
                $argument,
                gettype($argument)
            ));
        }
    }
}