public function setName($name)
    {
        if (is_string($name) === true) {
            $this->name = $name;
        } else {
            $msg = "The 'name' argument must be a string, '" . gettype($name) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setName($name)
    {
        if (is_string($name) === true) {
            $this->name = $name;
        } else {
            $msg = "The 'name' argument must be a string, '" . gettype($name) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
public function setName ( $ name ) { if ( is_string ( $ name ) === true ) { $ this -> name = $ name ; } else { $ msg = "The 'name' argument must be a string, '" . gettype ( $ name ) . "' given." ; throw new InvalidArgumentException ( $ msg ) ; } }
Set the name of the parameter, as interpreted by the object.

@param string $name A string.
@throws \InvalidArgumentException If $name is not a string.
Set the name of the parameter as interpreted by the object .