data = $this->data($car); } public function getLink(string $text=null): string { if(!$text) $text = $this->data->name; return "data->id}'>$text"; } public function card() { return $this->data->name . $this->data->img; } public function imgTag() { return "{$this->name}"; } public function imgTagFull() { return "{$this->name}"; } public function clickableName() { return $this->linkTag($this->name); } public function clickableImgTag() { return $this->linkTag($this->imgTag()); } public function linkTag($content) { return "$content"; } public function linkTitleImgTag() { $content = $this->name . '
' . $this->imgTag(); return "$content"; } */ }