XRL  latest
Simple XML-RPC Library (both client and server)
Request.php
1 <?php
2 /*
3  * This file is part of XRL, a simple XML-RPC Library for PHP.
4  *
5  * Copyright (c) 2012, XRL Team. All rights reserved.
6  * XRL is licensed under the 3-clause BSD License.
7  *
8  * For the full copyright and license information, please view the LICENSE
9  * file that was distributed with this source code.
10  */
11 
12 namespace fpoirotte\XRL;
13 
21 {
23  protected $procedure;
24 
26  protected $params;
27 
40  public function __construct($procedure, array $params)
41  {
42  if (!is_string($procedure)) {
43  throw new \InvalidArgumentException('Invalid procedure name');
44  }
45 
46  $this->procedure = $procedure;
47  $this->params = $params;
48  }
49 
51  public function getProcedure()
52  {
53  return $this->procedure;
54  }
55 
57  public function getParams()
58  {
59  return $this->params;
60  }
61 }
Interface for an object representing an XML-RPC request.
$params
Parameters to pass to the remote procedure.
Definition: Request.php:26
__construct($procedure, array $params)
Definition: Request.php:40
$procedure
Name of the remote procedure to call.
Definition: Request.php:23
A class that represents an XML-RPC request.
Definition: Request.php:20