Beispiel #1
0
 /**
  * Creates a new list of nodes
  *
  * @param  net.daringfireball.markdown.Node[] $nodes
  * @param  [:net.daringfireball.markdown.Link] $urls
  */
 public function __construct($nodes = [], $urls = [])
 {
     parent::__construct($nodes);
     $this->urls = $urls;
 }
Beispiel #2
0
 /**
  * Creates a new list
  *
  * @param  string $type either "th" or "td"
  * @param  string $alignment
  * @param  net.daringfireball.markdown.Node[] $nodes
  */
 public function __construct($type, $alignment, $nodes = [])
 {
     $this->type = $type;
     $this->alignment = $alignment;
     parent::__construct($nodes);
 }