3 namespace Caxy\HtmlDiff\ListDiff;
9 protected $listItems = array();
11 protected $attributes = array();
17 public function __construct($listType, $startTag, $endTag, $listItems = array(), $attributes = array())
19 $this->listType = $listType;
20 $this->startTag = $startTag;
21 $this->endTag = $endTag;
22 $this->listItems = $listItems;
23 $this->attributes = $attributes;
29 public function getListType()
31 return $this->listType;
35 * @param mixed $listType
39 public function setListType($listType)
41 $this->listType = $listType;
49 public function getStartTag()
51 return $this->startTag;
54 public function getStartTagWithDiffClass($class = 'diff-list')
56 return str_replace('>', ' class="'.$class.'">', $this->startTag);
60 * @param mixed $startTag
62 public function setStartTag($startTag)
64 $this->startTag = $startTag;
70 public function getEndTag()
76 * @param mixed $endTag
78 public function setEndTag($endTag)
80 $this->endTag = $endTag;
86 public function getListItems()
88 return $this->listItems;
92 * @param mixed $listItems
96 public function setListItems($listItems)
98 $this->listItems = $listItems;