src/Property/Type/BooleanValue.php
public static function inProperty(
        string $name,
        array $truths = [true, 1, '1'],
        array $falsehoods = [false, 0, '0']
    ): ExposesDataKey {
        $instance = parent::inProperty($name);

        assert($instance instanceof BooleanValue);
        $instance->truths = $truths;
        $instance->falsehoods = $falsehoods;

        return $instance;
    }
public static function inProperty(
        string $name,
        array $truths = [true, 1, '1'],
        array $falsehoods = [false, 0, '0']
    ): ExposesDataKey {
        $instance = parent::inProperty($name);

        assert($instance instanceof BooleanValue);
        $instance->truths = $truths;
        $instance->falsehoods = $falsehoods;

        return $instance;
    }
public static function inProperty ( string $ name , array $ truths = [ true , 1 , '1' ] , array $ falsehoods = [ false , 0 , '0' ] ) : ExposesDataKey { $ instance = parent :: inProperty ( $ name ) ; assert ( $ instance instanceof BooleanValue ) ; $ instance -> truths = $ truths ; $ instance -> falsehoods = $ falsehoods ; return $ instance ; }
Creates a new mapping for the boolean type object property.

@param string $name       The name of both the key and the property.
@param array  $truths     The values that should be considered true.
@param array  $falsehoods The values that should be considered false.
@return ExposesDataKey    The boolean mapping object.
Creates a new mapping for the boolean type object property .