src/Callbacks/ArrayValidatorCallback.php
/**
     * Query whether or not the passed value IS empty and empty values are allowed.
     *
     * @param string $attributeValue The attribute value to query for
     *
     * @return boolean TRUE if empty values are allowed and the passed value IS empty
     */
Query whether or not the passed value IS empty and empty values are allowed.
@param string $attributeValue The attribute value to query for

@return boolean TRUE if empty values are allowed and the passed value IS empty
Query whether or not the passed value IS empty and empty values are allowed . @param string $attributeValue The attribute value to query for @return boolean TRUE if empty values are allowed and the passed value IS empty
protected function isNullable($attributeValue)
    {
        if ($attributeValue === '' || $attributeValue === null) {
            if ($this->nullable === false && $this->mainRowOnly === false) {
                return false;
            }
            if ($this->nullable === true && $this->mainRowOnly === false) {
                return true;
            }
            if ($this->nullable === false && $this->mainRowOnly === true) {
                return $this->isMainRow() ? false : true;
            }
            if ($this->nullable === true && $this->mainRowOnly === true) {
                return $this->isMainRow() ? true : false;
            }
        }
        return false;
    }
protected function isNullable ( $ attributeValue ) { if ( $ attributeValue === '' || $ attributeValue === null ) { if ( $ this -> nullable === false && $ this -> mainRowOnly === false ) { return false ; } if ( $ this -> nullable === true && $ this -> mainRowOnly === false ) { return true ; } if ( $ this -> nullable === false && $ this -> mainRowOnly === true ) { return $ this -> isMainRow ( ) ? false : true ; } if ( $ this -> nullable === true && $ this -> mainRowOnly === true ) { return $ this -> isMainRow ( ) ? true : false ; } } return false ; }
Query whether or not the passed value IS empty and empty values are allowed.
Query whether or not the passed value IS empty and empty values are allowed .
// query whether or not the passed value IS empty // z1: value can NEVER be empty // z3: value can ALWAYS be empty // z2: value MUST NOT be empty in the main row // z4: value can ONLY be empty in the main row // if not, return TRUE immediately