public function setAcceptedBaseTypes(array $acceptedBaseTypes)
    {
        foreach ($acceptedBaseTypes as $baseType) {
            if (!in_array($baseType, OperatorBaseType::asArray(), true)) {
                $msg = "Accepted baseTypes must be values from the OperatorBaseType enumeration, '" . $baseType . "' given.";
                throw new InvalidArgumentException($msg);
            }
        }

        $this->acceptedBaseTypes = $acceptedBaseTypes;
    }
public function setAcceptedBaseTypes(array $acceptedBaseTypes)
    {
        foreach ($acceptedBaseTypes as $baseType) {
            if (!in_array($baseType, OperatorBaseType::asArray(), true)) {
                $msg = "Accepted baseTypes must be values from the OperatorBaseType enumeration, '" . $baseType . "' given.";
                throw new InvalidArgumentException($msg);
            }
        }

        $this->acceptedBaseTypes = $acceptedBaseTypes;
    }
public function setAcceptedBaseTypes ( array $ acceptedBaseTypes ) { foreach ( $ acceptedBaseTypes as $ baseType ) { if ( ! in_array ( $ baseType , OperatorBaseType :: asArray ( ) , true ) ) { $ msg = "Accepted baseTypes must be values from the OperatorBaseType enumeration, '" . $ baseType . "' given." ; throw new InvalidArgumentException ( $ msg ) ; } } $ this -> acceptedBaseTypes = $ acceptedBaseTypes ; }
Set the accepted operand accepted baseTypes.

@param array $acceptedBaseTypes An array of values from the OperatorBaseType enumeration.
@throws \InvalidArgumentException If a value from the $acceptedBaseTypes is not a value from the OperatorBaseType.
Set the accepted operand accepted baseTypes .