23 public function getValue( $name, array $settings, array $options ) {
24 return $this->callbacks->hasParam( $name, $options ) ?
true :
null;
27 public function validate( $name, $value, array $settings, array $options ) {
38 return parent::normalizeSettings( $settings );
41 public function checkSettings(
string $name, $settings, array $options, array $ret ) : array {
42 $ret = parent::
checkSettings( $name, $settings, $options, $ret );
48 'PARAM_ISMULTI cannot be used for presence-boolean-type parameters';
55 'Default for presence-boolean-type parameters must be false or null';
61 public function getParamInfo( $name, array $settings, array $options ) {
62 $info = parent::getParamInfo( $name, $settings, $options );
65 $info[
'default'] =
null;
70 public function getHelpInfo( $name, array $settings, array $options ) {
71 $info = parent::getHelpInfo( $name, $settings, $options );
74 'paramvalidator-help-type-presenceboolean'