/var/www/cobraambalaj/vendor/league/commonmark/src/Inline/Element
Edit: /var/www/cobraambalaj/vendor/league/commonmark/src/Inline/Element/AbstractStringContainer.php (1108B)
*
* Original code based on the CommonMark JS reference parser (https://bitly.com/commonmark-js)
* - (c) John MacFarlane
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace League\CommonMark\Inline\Element;
class AbstractStringContainer extends AbstractInline
{
/**
* @var string
*/
protected $content = '';
/**
* @param string $contents
* @param array
$data
*/
public function __construct(string $contents = '', array $data = [])
{
$this->content = $contents;
$this->data = $data;
}
/**
* @return string
*/
public function getContent(): string
{
return $this->content;
}
/**
* @param string $contents
*
* @return $this
*/
public function setContent(string $contents)
{
$this->content = $contents;
return $this;
}
}