/**
* @var string
*/
- protected $displayedTitle='';
+ protected $displayedTitle = '';
/**
* @var string
*/
public function getDisplayedTitle(): string
{
- return $this->displayedTitle?:$this->getTitle();
+ return $this->displayedTitle ?: $this->getTitle();
}
/**
*/
public function getIndividualDocData()
{
- return ['id' => $this->getId(), 'type' => $this->getType(), 'thumb' => $this->getThumb(), 'title' => $this->getTitle(), 'url' => $this->getUrl(), 'text' => $this->getText(), 'keywords' => $this->getKeywords(),'displayedTitle'=>$this->getDisplayedTitle()];
+ return [
+ 'id' => $this->getId(),
+ 'type' => $this->getType(),
+ 'thumb' => $this->getThumb(),
+ 'title' => $this->getTitle(),
+ 'url' => $this->getUrl(),
+ 'text' => $this->getText(),
+ 'keywords' => $this->getKeywords(),
+ 'displayedTitle' => $this->getDisplayedTitle()
+ ];
}
}
\ No newline at end of file