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

        return $value === 'true' ? true : false;
    }
protected function getBoolFromStringBool($value)
    {
        if (!($value == 'true' || $value == 'false')) {
            $this->throwException(sprintf('Expected "true" or "false" but got %s', $value));
        }

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

@param string $value
@return bool
@throws LdifParserException
Convert an expected string true or false to bool .