Completed
Branch new-addon-api (b7bde0)
by
unknown
18:29 queued 08:41
created

DataMigrationApi   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A dataMigrationScripts() 0 4 1
A addDataMigrationScripts() 0 4 1
1
<?php
2
3
namespace EventEspresso\core\services\addon\api\v1;
4
5
class DataMigrationApi
6
{
7
8
    /**
9
     * @var string path to DMS folder
10
     */
11
    private $data_migration_scripts;
12
13
14
    /**
15
     * @return string
16
     */
17
    public function dataMigrationScripts(): string
18
    {
19
        return $this->data_migration_scripts;
20
    }
21
22
23
    /**
24
     * @param string $data_migration_scripts
25
     */
26
    public function addDataMigrationScripts(string $data_migration_scripts): void
27
    {
28
        $this->data_migration_scripts = $data_migration_scripts;
29
    }
30
}
31