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

ManifestFile   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 26
rs 10
c 1
b 0
f 0
wmc 3
lcom 1
cbo 2

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A urlBase() 0 4 1
A filepath() 0 4 1
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