source = $linkSrc; $this->name = $linkName; $this->fontStyle = $this->setStyle(new Font('text'), $fontStyle); $this->paragraphStyle = $this->setStyle(new Paragraph(), $paragraphStyle); return $this; } /** * Get Link source * * @return string */ public function getLinkSrc() { return $this->source; } /** * Get Link name * * @return string */ public function getLinkName() { return $this->name; } /** * Get Text style * * @return string|\PhpOffice\PhpWord\Style\Font */ public function getFontStyle() { return $this->fontStyle; } /** * Get Paragraph style * * @return string|\PhpOffice\PhpWord\Style\Paragraph */ public function getParagraphStyle() { return $this->paragraphStyle; } }