Protocol\FCGI\Record\Params::__construct PHP Method

__construct() public method

Constructs a param request
public __construct ( array $values = [] )
$values array
    public function __construct(array $values = array())
    {
        $this->type = FCGI::PARAMS;
        $this->values = $values;
        $this->setContentData($this->packPayload());
    }

Usage Example

示例#1
0
 /**
  * Constructs a request
  *
  * @param array $keys List of keys to receive
  */
 public function __construct(array $keys = array())
 {
     parent::__construct(array_fill_keys($keys, ''));
     $this->type = FCGI::GET_VALUES;
 }
All Usage Examples Of Protocol\FCGI\Record\Params::__construct