public function isEmptyAllowed($allowEmpty = null)
    {
        if ($allowEmpty === null) {
            return $this->_allowEmpty;
        }

        deprecationWarning(
            'ValidationSet::isEmptyAllowed() is deprecated as a setter. ' .
            'Use ValidationSet::allowEmpty() instead.'
        );

        return $this->allowEmpty($allowEmpty);
    }
public function isEmptyAllowed($allowEmpty = null)
    {
        if ($allowEmpty === null) {
            return $this->_allowEmpty;
        }

        deprecationWarning(
            'ValidationSet::isEmptyAllowed() is deprecated as a setter. ' .
            'Use ValidationSet::allowEmpty() instead.'
        );

        return $this->allowEmpty($allowEmpty);
    }
public function isEmptyAllowed ( $ allowEmpty = null ) { if ( $ allowEmpty === null ) { return $ this -> _allowEmpty ; } deprecationWarning ( 'ValidationSet::isEmptyAllowed() is deprecated as a setter. ' . 'Use ValidationSet::allowEmpty() instead.' ) ; return $ this -> allowEmpty ( $ allowEmpty ) ; }
Sets whether a field value is allowed to be empty.

If no argument is passed the currently set `allowEmpty` value will be returned.

@param bool|string|callable|null $allowEmpty Deprecated since 3.6.0 ValidationSet::isEmptyAllowed() is deprecated as a setter.
Use ValidationSet::allowEmpty() instead.
@return bool|string|callable
Sets whether a field value is allowed to be empty .