public function getDownloadLink()
    {
        /** @var Attendee $attendee */
        if (
            ($attendee = $this->Attendees()->first())
            && ($file = $attendee->TicketFile())
            && $file->exists()
        ) {
            return $file->Link();
        }

        return null;
    }
public function getDownloadLink()
    {
        /** @var Attendee $attendee */
        if (
            ($attendee = $this->Attendees()->first())
            && ($file = $attendee->TicketFile())
            && $file->exists()
        ) {
            return $file->Link();
        }

        return null;
    }
public function getDownloadLink ( ) { /** @var Attendee $attendee */ if ( ( $ attendee = $ this -> Attendees ( ) -> first ( ) ) && ( $ file = $ attendee -> TicketFile ( ) ) && $ file -> exists ( ) ) { return $ file -> Link ( ) ; } return null ; }
Get the download link

@return string|null
Get the download link