1 | <?php |
||
12 | class Metric |
||
13 | { |
||
14 | /** |
||
15 | * The kind of a Metric |
||
16 | * @var string |
||
17 | */ |
||
18 | private $kind; |
||
19 | |||
20 | /** |
||
21 | * The unique identifier for the Metric |
||
22 | * @var integer |
||
23 | */ |
||
24 | private $id; |
||
25 | |||
26 | /** |
||
27 | * Constructor. |
||
28 | */ |
||
29 | 14 | public function __construct($options = array()) |
|
40 | |||
41 | /** |
||
42 | * Returns this object as array. |
||
43 | */ |
||
44 | 6 | public function toArray() |
|
60 | |||
61 | 9 | public function getKind() |
|
65 | |||
66 | 14 | public function setKind($kind) |
|
70 | |||
71 | 6 | public function getId() |
|
75 | |||
76 | 9 | public function setId($id) |
|
80 | } |
||
81 | |||
86 |
According to the PSR-2, the body of a case statement must start on the line immediately following the case statement.
}
To learn more about the PSR-2 coding standard, please refer to the PHP-Fig.