public function setToMarshall($toMarshall)
    {
        if ($this->isMarshallable($toMarshall) === false) {
            $msg = "The value to marshall cannot be managed by this implementation.";
            throw new InvalidArgumentException($msg);
        }

        $this->toMarshall = $toMarshall;
    }
public function setToMarshall($toMarshall)
    {
        if ($this->isMarshallable($toMarshall) === false) {
            $msg = "The value to marshall cannot be managed by this implementation.";
            throw new InvalidArgumentException($msg);
        }

        $this->toMarshall = $toMarshall;
    }
public function setToMarshall ( $ toMarshall ) { if ( $ this -> isMarshallable ( $ toMarshall ) === false ) { $ msg = "The value to marshall cannot be managed by this implementation." ; throw new InvalidArgumentException ( $ msg ) ; } $ this -> toMarshall = $ toMarshall ; }
Set the value that has to be marshalled.

@param mixed $toMarshall The value to be marshalled.
@throws \InvalidArgumentException If the value $toMarshall cannot be managed by this implementation.
Set the value that has to be marshalled .