1<?php 2 3/* 4 * This file is part of the league/commonmark package. 5 * 6 * (c) Colin O'Dell <colinodell@gmail.com> 7 * 8 * Original code based on the CommonMark JS reference parser (https://bitly.com/commonmark-js) 9 * - (c) John MacFarlane 10 * 11 * For the full copyright and license information, please view the LICENSE 12 * file that was distributed with this source code. 13 */ 14 15namespace League\CommonMark\Block\Element; 16 17class ListData 18{ 19 /** 20 * @var int|null 21 */ 22 public $start; 23 24 /** 25 * @var int 26 */ 27 public $padding = 0; 28 29 /** 30 * @var string 31 */ 32 public $type; 33 34 /** 35 * @var string|null 36 */ 37 public $delimiter; 38 39 /** 40 * @var string|null 41 */ 42 public $bulletChar; 43 44 /** 45 * @var int 46 */ 47 public $markerOffset; 48 49 /** 50 * @param ListData $data 51 * 52 * @return bool 53 */ 54 public function equals(ListData $data) 55 { 56 return $this->type === $data->type && 57 $this->delimiter === $data->delimiter && 58 $this->bulletChar === $data->bulletChar; 59 } 60} 61