public function validateAllowProfileAssociation($bool)
    {
        if (!is_bool($bool) && !is_numeric($bool)) {
            $this->addError('allow_profile_association', 'Allow profile association must be a boolean or 0 or 1');
            return false;
        }

        if (0 != (integer) $bool && 1 != (integer) $bool) {
            $this->addError('allow_profile_association', 'Allow profile association must be a boolean or 0 or 1');
            return false;
        }

        return true;
    }
public function validateAllowProfileAssociation($bool)
    {
        if (!is_bool($bool) && !is_numeric($bool)) {
            $this->addError('allow_profile_association', 'Allow profile association must be a boolean or 0 or 1');
            return false;
        }

        if (0 != (integer) $bool && 1 != (integer) $bool) {
            $this->addError('allow_profile_association', 'Allow profile association must be a boolean or 0 or 1');
            return false;
        }

        return true;
    }
public function validateAllowProfileAssociation ( $ bool ) { if ( ! is_bool ( $ bool ) && ! is_numeric ( $ bool ) ) { $ this -> addError ( 'allow_profile_association' , 'Allow profile association must be a boolean or 0 or 1' ) ; return false ; } if ( 0 != ( integer ) $ bool && 1 != ( integer ) $ bool ) { $ this -> addError ( 'allow_profile_association' , 'Allow profile association must be a boolean or 0 or 1' ) ; return false ; } return true ; }
Validate allow profile association

@param mixed $bool

@return bool
Validate allow profile association