Skip to content

Commit 8ea0c32

Browse files
author
Edd-G
committed
Added HTML to Json Parser. Moved config to separate file. Some fixes in Parser
1 parent a1b4c7a commit 8ea0c32

File tree

3 files changed

+651
-44
lines changed

3 files changed

+651
-44
lines changed

src/Config.php

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<?php
2+
3+
namespace Durlecode\EJSParser;
4+
5+
class Config
6+
{
7+
/**
8+
* @var string Prefix for CSS classes
9+
*/
10+
private $prefix = "prs";
11+
12+
/**
13+
* @var string EditorJS version
14+
*/
15+
private $version = "2.28.2";
16+
17+
public function getPrefix(): string
18+
{
19+
return $this->prefix;
20+
}
21+
22+
/**
23+
* @param string $prefix
24+
*/
25+
public function setPrefix(string $prefix): void
26+
{
27+
$this->prefix = $prefix;
28+
}
29+
30+
/**
31+
* @param string $version
32+
*/
33+
public function getVersion(): string
34+
{
35+
return $this->version;
36+
}
37+
38+
/**
39+
* @param string $version
40+
*/
41+
public function setVersion(string $version): void
42+
{
43+
$this->version = $version;
44+
}
45+
46+
}

0 commit comments

Comments
 (0)