1
0
mirror of https://github.com/erusev/parsedown.git synced 2023-08-10 21:13:06 +03:00

Constructor shouldn't be part of public API

This commit is contained in:
Aidan Woods
2019-02-16 12:37:22 +00:00
parent f83ee87902
commit 3c0b528d54
24 changed files with 27 additions and 23 deletions

View File

@@ -18,7 +18,7 @@ final class PlainText implements Inline
/**
* @param string $text
*/
public function __construct($text)
private function __construct($text)
{
$this->text = $text;
$this->width = \strlen($text);