summaryrefslogtreecommitdiff
path: root/app/ExternalLink/AttachmentLink.php
blob: 5a0d13442af61e4c616577be83cff9931920ca53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php

namespace Kanboard\ExternalLink;

use Kanboard\Core\ExternalLink\ExternalLinkInterface;

/**
 * Attachment Link
 *
 * @package  externalLink
 * @author   Frederic Guillot
 */
class AttachmentLink extends BaseLink implements ExternalLinkInterface
{
    /**
     * Get link title
     *
     * @access public
     * @return string
     */
    public function getTitle()
    {
        $path = parse_url($this->url, PHP_URL_PATH);
        return basename($path);
    }
}