src/Callbacks/NumberValidatorCallback.php
/**
     * Will be invoked by the observer it has been registered for.
     *
     * @param string|null $attributeCode  The code of the attribute that has to be validated
     * @param string|null $attributeValue The attribute value to be validated
     *
     * @return mixed The modified value
     */
Will be invoked by the observer it has been registered for.
@param string|null $attributeCode  The code of the attribute that has to be validated
@param string|null $attributeValue The attribute value to be validated

@return mixed The modified value
Will be invoked by the observer it has been registered for . @param string|null $attributeCode The code of the attribute that has to be validated @param string|null $attributeValue The attribute value to be validated @return mixed The modified value
public function handle($attributeCode = null, $attributeValue = null)
    {
        if ($this->isNullable($attributeValue) || $this->isNumber($attributeValue)) {
            return;
        }
        throw new \InvalidArgumentException(
            sprintf(
                'Found invalid number "%s" for column "%s"',
                $attributeValue,
                $attributeCode
            )
        );
    }
public function handle ( $ attributeCode = null , $ attributeValue = null ) { if ( $ this -> isNullable ( $ attributeValue ) || $ this -> isNumber ( $ attributeValue ) ) { return ; } throw new \ InvalidArgumentException ( sprintf ( 'Found invalid number "%s" for column "%s"' , $ attributeValue , $ attributeCode ) ) ; }
Will be invoked by the observer it has been registered for.
Will be invoked by the observer it has been registered for .
// query whether or not we've found a value and it is a valid number // throw an exception if the value is NOT in the array