We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c52525 commit 4004b4aCopy full SHA for 4004b4a
tests/src/Stubs/Blocks/ParagraphData.php
@@ -2,15 +2,23 @@
2
3
namespace Yuges\Contentable\Tests\Stubs\Blocks;
4
5
+use Yuges\Contentable\Abstracts\BlockData;
6
use Yuges\Contentable\Tests\Stubs\Enums\BlockType;
7
-class ParagraphData extends \Yuges\Contentable\Data\Blocks\ParagraphData
8
+class ParagraphData extends BlockData
9
{
- protected const BlockType TYPE = BlockType::Delimiter;
10
+ protected const BlockType TYPE = BlockType::Paragraph;
11
12
public function __construct(
13
public ?string $text = '',
14
) {
- parent::__construct($text);
15
+ parent::__construct();
16
+ }
17
+
18
+ public function getData(): array
19
+ {
20
+ return [
21
+ 'text' => $this->text,
22
+ ];
23
}
24
0 commit comments