link = $link; $this->name = $name; $this->mimetype = $type; } /** * @return Used to display the name of an attachment link */ public function getName() { return $this->name; } /** * @param $name Used to display the name of an attachment link */ public function setName($name) { $this->name = $name; } /** * @return Mime type of the attachment. If it is a known type it can automatically trigger an application start * (e.g. audio/mpeg can start the attachment in the phones media player) */ public function getType() { return $this->mimetype; } /** * @param $mimetype Mime type of the attachment. If it is a known type it can automatically trigger an application start * (e.g. audio/mpeg can start the attachment in the phones media player) */ public function setType($mimetype) { $this->mimetype = $mimetype; } /** * @return The URL to the attachment */ public function getLink() { return $this->link; } }