League\CommonMark\Inline\Element\Link::__construct PHP Method

__construct() public method

public __construct ( string $url, string | null $label = null, string $title = '' )
$url string
$label string | null
$title string
    public function __construct($url, $label = null, $title = '')
    {
        parent::__construct($url);
        if (is_string($label)) {
            $this->appendChild(new Text($label));
        }
        if (!empty($title)) {
            $this->data['title'] = $title;
        }
    }