1 | <?php |
||
17 | class Input implements InputInterface |
||
18 | { |
||
19 | /** |
||
20 | * Data storage. |
||
21 | * |
||
22 | * @var array |
||
23 | * @access protected |
||
24 | */ |
||
25 | protected $data; |
||
26 | |||
27 | /** |
||
28 | * Internal constructor. |
||
29 | * |
||
30 | * @access public |
||
31 | * @return void |
||
|
|||
32 | */ |
||
33 | 21 | public function __construct() |
|
37 | |||
38 | /** |
||
39 | * Set data value. |
||
40 | * |
||
41 | * @access public |
||
42 | * @param string $name |
||
43 | * @param mixed $value |
||
44 | * @return \JonnyW\PhantomJs\Procedure\Input |
||
45 | */ |
||
46 | 19 | public function set($name, $value) |
|
52 | |||
53 | /** |
||
54 | * Get data value. |
||
55 | * |
||
56 | * @access public |
||
57 | * @param string $name |
||
58 | * @return mixed |
||
59 | */ |
||
60 | 19 | public function get($name) |
|
68 | } |
||
69 |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.