File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed
Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -175,6 +175,7 @@ private static function mapTypeToClass(string $type): string
175175 case 'video ' :
176176 case 'file ' :
177177 case 'pdf ' :
178+ case 'quote ' :
178179 $ class = str_replace ('_ ' , '' , ucwords ($ type , '_ ' ));
179180
180181 return 'FiveamCode \\LaravelNotionApi \\Entities \\Blocks \\' .$ class ;
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace FiveamCode \LaravelNotionApi \Entities \Blocks ;
4+
5+ /**
6+ * Class Quote.
7+ */
8+ class Quote extends TextBlock
9+ {
10+ public static function create ($ textContent ): Quote
11+ {
12+ self ::assertValidTextContent ($ textContent );
13+
14+ $ quote = new Quote ();
15+ TextBlock::createTextBlock ($ quote , $ textContent );
16+
17+ return $ quote ;
18+ }
19+
20+ public function __construct (array $ responseData = null )
21+ {
22+ $ this ->type = 'quote ' ;
23+ parent ::__construct ($ responseData );
24+ }
25+ }
You can’t perform that action at this time.
0 commit comments