Skip to content

Commit 45802f4

Browse files
committed
Convert protected Post properties to public
1 parent 550a244 commit 45802f4

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/PostTypes/Post.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
class Post
88
{
9-
protected $id;
9+
public $id;
1010

1111
protected $WP_Post;
1212

@@ -15,17 +15,17 @@ class Post
1515
'thumbnail_classes' => '',
1616
];
1717

18-
protected $title = '';
19-
protected $url = '';
20-
protected $slug = '';
21-
protected $content = '';
22-
protected $status = '';
23-
protected $format = '';
24-
protected $excerpt = '';
25-
protected $date = '';
26-
protected $dateModified = '';
27-
protected $parent;
28-
protected $thumbnail = '';
18+
public string $title = '';
19+
public string $url = '';
20+
public string $slug = '';
21+
public string $content = '';
22+
public string $status = '';
23+
public string $format = '';
24+
public string $excerpt = '';
25+
public Carbon $date;
26+
public Carbon $dateModified = '';
27+
public \WP_Post $parent;
28+
public string $thumbnail = '';
2929

3030
/**
3131
* Set up

0 commit comments

Comments
 (0)