League\CommonMark\Inline\Parser\CloseBracketParser::createInline PHP Method

createInline() protected method

protected createInline ( string $url, string $title, boolean $isImage ) : AbstractWebResource
$url string
$title string
$isImage boolean
return League\CommonMark\Inline\Element\AbstractWebResource
    protected function createInline($url, $title, $isImage)
    {
        if ($isImage) {
            return new Image($url, null, $title);
        } else {
            return new Link($url, null, $title);
        }
    }