-
Notifications
You must be signed in to change notification settings - Fork 65
Expand file tree
/
Copy pathCommandInterface.php
More file actions
53 lines (46 loc) · 891 Bytes
/
CommandInterface.php
File metadata and controls
53 lines (46 loc) · 891 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
/**
* @author Joshua Estes
* @copyright 2012-2015 Joshua Estes
* @license https://github.com/nbobtc/bitcoind-php/blob/2.x/LICENSE MIT
*/
namespace Nbobtc\Command;
/**
* @since 2.0.0
*/
interface CommandInterface
{
/**
* @since 2.0.0
* @return string
*/
public function getId();
/**
* @since 2.0.0
* @return array
*/
public function getParameters();
/**
* @since 2.0.0
* @return string
*/
public function getMethod();
/**
* @since 2.0.0
* @param string $method
* @return self
*/
public function withMethod($method);
/**
* @since 2.0.0
* @param array|string $parameters
* @return self
*/
public function withParameters($parameters);
/**
* @since 2.0.0
* @param string $id
* @return self
*/
public function withId($id);
}