ApaiIO\Operations\Search::validatePrice PHP Метод

validatePrice() защищенный метод

Validates the given price.
protected validatePrice ( integer $price )
$price integer
    protected function validatePrice($price)
    {
        if (false === is_numeric($price) || $price < 1) {
            throw new \InvalidArgumentException(sprintf('%s is an invalid price value. It has to be numeric and >= than 1', $price));
        }
    }