public function exclusivelyBoolean()
    {
        if (count($this) === 0) {
            return false;
        }

        foreach (array_keys($this->getDataPlaceHolder()) as $key) {
            $v = $this[$key];
            if (($v instanceof MultipleContainer || $v instanceof OrderedContainer) && ($v->isNull() || $v->getBaseType() !== BaseType::BOOLEAN)) {
                return false;
            } elseif (!$v instanceof QtiBoolean && !$v instanceof MultipleContainer && !$v instanceof OrderedContainer) {
                return false;
            }
        }

        return true;
    }
public function exclusivelyBoolean()
    {
        if (count($this) === 0) {
            return false;
        }

        foreach (array_keys($this->getDataPlaceHolder()) as $key) {
            $v = $this[$key];
            if (($v instanceof MultipleContainer || $v instanceof OrderedContainer) && ($v->isNull() || $v->getBaseType() !== BaseType::BOOLEAN)) {
                return false;
            } elseif (!$v instanceof QtiBoolean && !$v instanceof MultipleContainer && !$v instanceof OrderedContainer) {
                return false;
            }
        }

        return true;
    }
public function exclusivelyBoolean ( ) { if ( count ( $ this ) === 0 ) { return false ; } foreach ( array_keys ( $ this -> getDataPlaceHolder ( ) ) as $ key ) { $ v = $ this [ $ key ] ; if ( ( $ v instanceof MultipleContainer || $ v instanceof OrderedContainer ) && ( $ v -> isNull ( ) || $ v -> getBaseType ( ) !== BaseType :: BOOLEAN ) ) { return false ; } elseif ( ! $ v instanceof QtiBoolean && ! $ v instanceof MultipleContainer && ! $ v instanceof OrderedContainer ) { return false ; } } return true ; }
Wether the collection contains exclusively boolean values or containers.

* If the collection of operands is empty, false is returned.
* If the collection of operands contains a NULL value or a NULL container, false is returned.
* If the collection of operands contains a value or container which is not boolean, false is returned.
* If the collection of operands contains a RECORD container, false is returned, because records are not typed.

@return boolean
Wether the collection contains exclusively boolean values or containers .