Get boolean value from the Store
@param  $string $prop Property name
@return bool       Property value, or null when value was not a boolean.
541447
public function getBool($prop) {

			// Get property
			$val = $this->get($prop);

			// String/numeric bool?
			if ($val === 'false') { 
				$val = false; 
			} elseif ($val === 'true') {
				$val = true;
			} elseif ($val === 1 || $val === '1') {
				$val = true;
			} elseif ($val === 0 || $val === '0') {
				$val = false;
			}




			// Boolean?
			if (is_bool($val))  {
				return $val;
			} else {
				return null;
			}

		}
891492
@SuppressWarnings("unchecked")
    public static <T> T getPropValue(final Object entity, final String propName) {
        return getPropValue(entity, propName, false);
    }
1346442
public function getBool(string $key, bool $default = false): bool
    {
        $value = $this->get($key, $default);
        if (is_string($value)) {
            $value = strtolower($value);
        }
        return in_array($value, [1, true, '1', 'true', 'yes', 'on'], true);
    }
289837
protected function getBoolValue( $key, $value = null )
	{
		$bool = $this->getValue( $key, $value );

		if( is_null( filter_var( $bool, FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE ))) {
			$bool = $this->postmeta->get( $bool );
		}
		return wp_validate_boolean( $bool );
	}
1072739
public boolean getBooleanProperty(String key) {
    requireNonNull(key);
    String value = properties.get(key);
    return value != null && Boolean.parseBoolean(value);
  }
753116
public function get($prop)
    {
        $value = isset($this->_data[$prop]) ? $this->_data[$prop] : null;

        // dereference property reference values
        return $value instanceof PropertyReference ? $value->value() : $value;
    }
1120841
protected boolean getBooleanFromProperty(String propName) {
        CreatorProperty prop = findPropertyValue(propName);
        return Boolean.valueOf(prop.getLatestValue());
    }
609902
public function get($prop) {

			// Loop through sources to find it
			foreach ($this->_sources as $source) { 

				// Has prop?
				if (array_key_exists($prop, $source)) {
					return $source[$prop];
				}

			}

			// Not found
			throw new \Exception("There is no property '" . $prop . "' in this Store", 1);		

		}
1355381
protected function getObjectPropertyValue(\ReflectionProperty $property, $prop, $data)
    {
        $prop =  $property->getName();

        try {
            $value = $data->{$prop};
        } catch (\Exception $e) {
        }

        if (!is_scalar($value)) {
            $value = $this->ensureBuildable($value);
        }

        return $value;
    }
1095865
public static boolean getBool(Properties props, String key, 
                                boolean defaultValue) {
    String value = props.getProperty(key);
    if (value != null) {
      return Boolean.parseBoolean(value);
    } else {
      return defaultValue;
    }
  }
769445
public function fileInfo($prop = null)
	{
		return (is_string($prop))
			? stat($this->absolute_path)[$prop]
			: stat($this->absolute_path);
	}
695181
public static function booleanValue($s)
    {
        if (is_bool($s)) {
            return $s; // it's already boolean (not a string)
        }
        // otherwise assume it's something like "true" or "t"
        $trimmed = strtolower(trim($s));

        return (boolean) in_array($trimmed, self::$TRUE_VALUES);
    }
262746
protected function resolveFieldDeprecationReason($prop): ?string
    {
        /** @var Annotation\Field $annotation */
        if ($annotation = $this->getFieldAnnotation($prop, Annotation\Field::class)) {
            return $annotation->deprecationReason;
        }

        return null;
    }
64537
protected function getBooleanValue($value)
    {
        if (is_string($value)) {
            return 'true' === $value ? true : false;
        } elseif (is_bool($value)) {
            return $value;
        } elseif (is_numeric($value)) {
            return 1 === $value ? true : false;
        }
    }
649411
public function __isset($prop) {
        if (in_array($prop, $this->properties)) {
            return isset($this->$prop);
        }
        throw new \coding_exception("Invalid property $prop specified");
    }
1069927
public boolean getBooleanProperty(String propertyName, boolean defaultValue) {

		return Boolean.valueOf(getProperty(propertyName, Boolean.toString(defaultValue)));
	}
798440
public function getBool($key = null, $default = null, $hash = 'input')
	{
		$result = (bool) $this->getVar($key, $default, $hash);
		return $result ? true : false;
	}