Total Complexity | 2 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
20 | class CarbonPost implements PostInterface { |
||
21 | |||
22 | /** |
||
23 | * Get. |
||
24 | * |
||
25 | * @param integer $id Id. |
||
26 | * @param string $key Key. |
||
27 | * @param boolean $single Single. |
||
28 | * @return mixed |
||
29 | */ |
||
30 | public function get( int $id, string $key, bool $single = false ) { |
||
31 | return carbon_get_post_meta( $id, $key ); |
||
|
|||
32 | } |
||
33 | |||
34 | /** |
||
35 | * Set. |
||
36 | * |
||
37 | * @param integer $id Id. |
||
38 | * @param string $key Key. |
||
39 | * @param mixed $value Value. |
||
40 | * @return IMeta |
||
41 | */ |
||
42 | public function set( int $id, string $key, $value ) : IMeta { |
||
45 | } |
||
46 | } |
||
47 |