public function setDescription($description = null) {

        if ( empty($description) ) $this->description = null;

        else if ( !is_string($description) ) throw new InvalidArgumentException("Invalid RpcMethod description");

        else $this->description = $description;

        return $this;

    }
public function setDescription($description = null) {

        if ( empty($description) ) $this->description = null;

        else if ( !is_string($description) ) throw new InvalidArgumentException("Invalid RpcMethod description");

        else $this->description = $description;

        return $this;

    }
public function setDescription ( $ description = null ) { if ( empty ( $ description ) ) $ this -> description = null ; else if ( ! is_string ( $ description ) ) throw new InvalidArgumentException ( "Invalid RpcMethod description" ) ; else $ this -> description = $ description ; return $ this ; }
Set the method's description

@param string $description

@return self
@throws InvalidArgumentException
Set the method s description