| Current Path : /home/rtorresani/www/vendor/magento/module-catalog/Model/Product/Option/Validator/ |
| Current File : //home/rtorresani/www/vendor/magento/module-catalog/Model/Product/Option/Validator/File.php |
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Catalog\Model\Product\Option\Validator;
use Magento\Catalog\Model\Product\Option;
class File extends DefaultValidator
{
/**
* Validate option type fields
*
* @param Option $option
* @return bool
*/
protected function validateOptionValue(Option $option)
{
$result = parent::validateOptionValue($option);
return $result && !$this->isNegative($option->getImageSizeX()) && !$this->isNegative($option->getImageSizeY());
}
}