Completed
Branch GDPR/user-data-export (1838dd)
by
unknown
53:17 queued 40:13
created

ManifestFile::urlBase()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 1
b 0
f 0
1
<?php
2
3
namespace EventEspresso\core\domain\values\assets;
4
5
use EventEspresso\core\domain\DomainInterface;
6
use EventEspresso\core\exceptions\InvalidDataTypeException;
7
8
/**
9
 * Class ManifestFile
10
 * Details for a JSON Manifest file
11
 *
12
 * @package EventEspresso\core\domain\values\assets
13
 * @author  Brent Christensen
14
 * @since   $VID:$
15
 */
16
class ManifestFile extends Asset
17
{
18
19
    /**
20
     * Asset constructor.
21
     *
22
     * @param DomainInterface $domain
23
     * @throws InvalidDataTypeException
24
     */
25
    public function __construct(DomainInterface $domain)
26
    {
27
        parent::__construct(Asset::TYPE_MANIFEST, $domain->assetNamespace(), $domain);
28
    }
29
30
31
    public function urlBase()
32
    {
33
        return $this->domain->distributionAssetsUrl();
34
    }
35
36
37
    public function filepath()
38
    {
39
        return $this->domain->distributionAssetsPath();
40
    }
41
}
42