src/Request/RequestOptions.php
public function addPostParam($param, $value = true)
  {
    // Validate
    if (!is_scalar($param))
    {
      throw new \Exception("Param name must be scalar");
    }

    // Filter
    if (is_string($value))
    {
      $value = trim($value);
    }

    // Set
    $this->postParams[trim($param)] = $value;

    return $this;
  }
public function addPostParam($param, $value = true)
  {
    // Validate
    if (!is_scalar($param))
    {
      throw new \Exception("Param name must be scalar");
    }

    // Filter
    if (is_string($value))
    {
      $value = trim($value);
    }

    // Set
    $this->postParams[trim($param)] = $value;

    return $this;
  }
public function addPostParam ( $ param , $ value = true ) { // Validate if ( ! is_scalar ( $ param ) ) { throw new \ Exception ( "Param name must be scalar" ) ; } // Filter if ( is_string ( $ value ) ) { $ value = trim ( $ value ) ; } // Set $ this -> postParams [ trim ( $ param ) ] = $ value ; return $ this ; }
Add a POST parameter

@param      $param
@param bool $value

@return $this
@throws \Exception
Add a POST parameter