1 | <?php |
||
5 | class Method implements \Serializable |
||
6 | { |
||
7 | |||
8 | private $id; |
||
9 | private $name; |
||
10 | private $params; |
||
11 | |||
12 | public function __construct($id, $name, array $params = []) |
||
18 | |||
19 | |||
20 | public function serialize() |
||
28 | |||
29 | public function unserialize($serialized) |
||
36 | |||
37 | /** |
||
38 | * @return string |
||
39 | */ |
||
40 | public function getId() |
||
44 | |||
45 | /** |
||
46 | * @param string $id |
||
47 | */ |
||
48 | public function setId($id) |
||
52 | |||
53 | /** |
||
54 | * @return string |
||
55 | */ |
||
56 | public function getName() |
||
60 | |||
61 | /** |
||
62 | * @param string $name |
||
63 | */ |
||
64 | public function setName($name) |
||
68 | |||
69 | /** |
||
70 | * @return array |
||
71 | */ |
||
72 | public function getParams() |
||
76 | |||
77 | /** |
||
78 | * @param array $params |
||
79 | */ |
||
80 | public function setParams(array $params) |
||
84 | } |