Rewrite::setFileName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 1
1
<?php
2
/**
3
 * File: Rewrite.php
4
 *
5
 * @author Maciej Sławik <[email protected]>
6
 * @copyright Copyright (C) 2018 Lizard Media (http://lizardmedia.pl)
7
 */
8
declare(strict_types=1);
9
10
namespace LizardMedia\GoogleAnalyticsVerifier\Model\Data;
11
12
use LizardMedia\GoogleAnalyticsVerifier\Api\Data\RewriteInterface;
13
use Magento\Framework\DataObject;
14
15
/**
16
 * Class Rewrite
17
 * @package LizardMedia\GoogleAnalyticsVerifier\Model\Data
18
 */
19
class Rewrite extends DataObject implements RewriteInterface
20
{
21
    /**
22
     * @return string
23
     */
24
    public function getFileName(): string
25
    {
26
        return $this->getData(self::FILENAME);
27
    }
28
29
    /**
30
     * @param string $fileName
31
     * @return void
32
     */
33
    public function setFileName(string $fileName)
34
    {
35
        $this->setData(self::FILENAME, $fileName);
36
    }
37
38
    /**
39
     * @return string
40
     */
41
    public function getFileContent(): string
42
    {
43
        return $this->getData(self::FILECONTENT);
44
    }
45
46
    /**
47
     * @param string $fileContent
48
     * @return void
49
     */
50
    public function setFileContent(string $fileContent)
51
    {
52
        $this->setData(self::FILECONTENT, $fileContent);
53
    }
54
}
55