Skip to content

Commit 25329f3

Browse files
committed
Add wp-post-meta-row value object
1 parent 544cf63 commit 25329f3

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

example/class-wp-post-meta-row.php

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<?php
2+
3+
/**
4+
* Value object for postmeta database table rows.
5+
*
6+
* Created to aid static analysis by PHPStan.
7+
*
8+
* @package WordPress
9+
* @see wp_get_db_schema()
10+
*/
11+
12+
/**
13+
* List fields of postmeta database table as object properties.
14+
*/
15+
class WP_Post_Meta_Row {
16+
17+
/**
18+
* @var int
19+
*/
20+
public $meta_id;
21+
22+
/**
23+
* @var int
24+
*/
25+
public $post_id;
26+
27+
/**
28+
* @var string
29+
*/
30+
public $meta_key;
31+
32+
/**
33+
* @var string
34+
*/
35+
public $meta_value;
36+
}

0 commit comments

Comments
 (0)