public function sameBaseType()
    {
        $operandsCount = count($this);
        if ($operandsCount > 0 && !$this->containsNull()) {

            // take the first value of the collection as a referer.
            $refValue = $this[0];
            $refType = RuntimeUtils::inferBaseType($refValue);

            for ($i = 1; $i < $operandsCount; $i++) {
                $value = $this[$i];
                $testType = RuntimeUtils::inferBaseType($value);

                if ($testType !== $refType) {
                    return false;
                }
            }

            // In any other case, return true.
            return true;
        } else {
            return false;
        }
    }
public function sameBaseType()
    {
        $operandsCount = count($this);
        if ($operandsCount > 0 && !$this->containsNull()) {

            // take the first value of the collection as a referer.
            $refValue = $this[0];
            $refType = RuntimeUtils::inferBaseType($refValue);

            for ($i = 1; $i < $operandsCount; $i++) {
                $value = $this[$i];
                $testType = RuntimeUtils::inferBaseType($value);

                if ($testType !== $refType) {
                    return false;
                }
            }

            // In any other case, return true.
            return true;
        } else {
            return false;
        }
    }
public function sameBaseType ( ) { $ operandsCount = count ( $ this ) ; if ( $ operandsCount > 0 && ! $ this -> containsNull ( ) ) { // take the first value of the collection as a referer. $ refValue = $ this [ 0 ] ; $ refType = RuntimeUtils :: inferBaseType ( $ refValue ) ; for ( $ i = 1 ; $ i < $ operandsCount ; $ i ++ ) { $ value = $ this [ $ i ] ; $ testType = RuntimeUtils :: inferBaseType ( $ value ) ; if ( $ testType !== $ refType ) { return false ; } } // In any other case, return true. return true ; } else { return false ; } }
Whether the collection is composed of values with the same baseType.

* If any of the values has not the same baseType than other values in the collection, false is returned.
* If the OperandsCollection is an empty collection, false is returned.
* If the OperandsCollection contains a value considered to be null, false is returned.
* If the OperandsCollection is composed exclusively by non-null RecordContainer objects, true is returned.

@return boolean
Whether the collection is composed of values with the same baseType .