bulletType = self::TYPE_NONE; $this->bulletFont = 'Calibri'; $this->bulletChar = '-'; $this->bulletColor = new Color(); $this->bulletNumericStyle = self::NUMERIC_DEFAULT; $this->bulletNumericStartAt = 1; } /** * Get bullet type. * * @return string */ public function getBulletType() { return $this->bulletType; } /** * Set bullet type. * * @param string $pValue * * @return \PhpOffice\PhpPresentation\Style\Bullet */ public function setBulletType($pValue = self::TYPE_NONE) { $this->bulletType = $pValue; return $this; } /** * Get bullet font. * * @return string */ public function getBulletFont() { return $this->bulletFont; } /** * Set bullet font. * * @param string $pValue * * @return \PhpOffice\PhpPresentation\Style\Bullet */ public function setBulletFont($pValue = 'Calibri') { if ('' == $pValue) { $pValue = 'Calibri'; } $this->bulletFont = $pValue; return $this; } /** * Get bullet char. * * @return string */ public function getBulletChar() { return $this->bulletChar; } /** * Set bullet char. * * @param string $pValue * * @return \PhpOffice\PhpPresentation\Style\Bullet */ public function setBulletChar($pValue = '-') { $this->bulletChar = $pValue; return $this; } /** * Get bullet numeric style. * * @return string */ public function getBulletNumericStyle() { return $this->bulletNumericStyle; } /** * Set bullet numeric style. * * @param string $pValue * * @return \PhpOffice\PhpPresentation\Style\Bullet */ public function setBulletNumericStyle($pValue = self::NUMERIC_DEFAULT) { $this->bulletNumericStyle = $pValue; return $this; } /** * Get bullet numeric start at. * * @return int|string */ public function getBulletNumericStartAt() { return $this->bulletNumericStartAt; } /** * Set bullet numeric start at. * * @param int|string $pValue * * @return \PhpOffice\PhpPresentation\Style\Bullet */ public function setBulletNumericStartAt($pValue = 1) { $this->bulletNumericStartAt = $pValue; return $this; } /** * Get hash code. * * @return string Hash code */ public function getHashCode(): string { return \md5( $this->bulletType . $this->bulletFont . $this->bulletChar . $this->bulletNumericStyle . $this->bulletNumericStartAt . __CLASS__ ); } /** * Get hash index. * * Note that this index may vary during script execution! Only reliable moment is * while doing a write of a workbook and when changes are not allowed. * * @return int|null Hash index */ public function getHashIndex(): ?int { return $this->hashIndex; } /** * Set hash index. * * Note that this index may vary during script execution! Only reliable moment is * while doing a write of a workbook and when changes are not allowed. * * @param int $value Hash index * * @return $this */ public function setHashIndex(int $value) { $this->hashIndex = $value; return $this; } /** * @return Color */ public function getBulletColor() { return $this->bulletColor; } /** * @return Bullet */ public function setBulletColor(Color $bulletColor) { $this->bulletColor = $bulletColor; return $this; } }