@@ -9,6 +9,7 @@ class Post extends Model
99 protected $ published ;
1010 protected $ created ;
1111 protected $ status ;
12+ protected $ scheduled ;
1213 protected $ title ;
1314 protected $ body ;
1415 protected $ summary ;
@@ -46,8 +47,99 @@ public function __construct(array $data)
4647 parent ::__construct ($ data );
4748 }
4849
50+ public function getSlug ()
51+ {
52+ return $ this ->slug ;
53+ }
54+
55+ public function getUrl ()
56+ {
57+ return $ this ->url ;
58+ }
59+
60+ public function getPublished ()
61+ {
62+ return $ this ->published ;
63+ }
64+
65+ public function getCreated ()
66+ {
67+ return $ this ->created ;
68+ }
69+
70+ public function getStatus ()
71+ {
72+ return $ this ->status ;
73+ }
74+
75+ public function getScheduled ()
76+ {
77+ return $ this ->scheduled ;
78+ }
79+
80+ public function getTitle ()
81+ {
82+ return $ this ->title ;
83+ }
84+
85+ public function getBody ()
86+ {
87+ return $ this ->body ;
88+ }
89+
90+ public function getSummary ()
91+ {
92+ return $ this ->summary ;
93+ }
94+
95+ public function getSeoTitle ()
96+ {
97+ return $ this ->seo_title ;
98+ }
99+
100+ public function getMetaDescription ()
101+ {
102+ return $ this ->meta_description ;
103+ }
104+
105+ public function getAuthor ()
106+ {
107+ return $ this ->author ;
108+ }
109+
110+ public function getCategories ()
111+ {
112+ return $ this ->categories ;
113+ }
114+
115+ public function getTags ()
116+ {
117+ return $ this ->tags ;
118+ }
119+
120+ public function getFeaturedImage ()
121+ {
122+ return $ this ->featured_image ;
123+ }
124+
125+ public function getFeaturedImageAlt ()
126+ {
127+ return $ this ->featured_image_alt ;
128+ }
129+
49130 public function isPublished ()
50131 {
51132 return 'published ' === $ this ->status ;
52133 }
134+
135+ public function isScheduled ()
136+ {
137+ return 'scheduled ' === $ this ->status ;
138+ }
139+
140+ public function isDraft ()
141+ {
142+ return 'draft ' === $ this ->status ;
143+ }
53144}
145+
0 commit comments