src/LdapTools/Ldif/LdifParser.php
protected function getBoolFromStringInt($value)
    {
        if (!($value == '0' || $value == '1')) {
            $this->throwException(sprintf('Expected "0" or "1" but got: %s', $value));
        }

        return (bool) $value;
    }
protected function getBoolFromStringInt($value)
    {
        if (!($value == '0' || $value == '1')) {
            $this->throwException(sprintf('Expected "0" or "1" but got: %s', $value));
        }

        return (bool) $value;
    }
protected function getBoolFromStringInt ( $ value ) { if ( ! ( $ value == '0' || $ value == '1' ) ) { $ this -> throwException ( sprintf ( 'Expected "0" or "1" but got: %s' , $ value ) ) ; } return ( bool ) $ value ; }
Convert an expected string "0" or "1" to bool.

@param string $value
@return bool
@throws LdifParserException
Convert an expected string 0 or 1 to bool .