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

Add some traits for common Inline implementations

This commit is contained in:
Aidan Woods 2019-01-20 02:32:17 +00:00
parent 18e239fba1
commit 25cf5a1729
No known key found for this signature in database
GPG Key ID: 9A6A8EFAA512BBB9
2 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,12 @@
<?php
namespace Erusev\Parsedown\Components\Inlines;
trait DefaultBeginPosition
{
/** @return int|null */
public function modifyStartPositionTo()
{
return null;
}
}

View File

@ -0,0 +1,15 @@
<?php
namespace Erusev\Parsedown\Components\Inlines;
trait WidthTrait
{
/** @var int */
private $width;
/** @return int */
public function width()
{
return $this->width;
}
}