Code Duplication    Length = 10-10 lines in 2 locations

Sitemap/Entity/SitemapIndex.php 1 location

@@ 27-36 (lines=10) @@
24
        return $this->loc;
25
    }
26
27
    public function setLastmod($lastmod)
28
    {
29
        if ($lastmod !== null && !$lastmod instanceof \DateTime) {
30
            $lastmod = new \DateTime($lastmod);
31
        }
32
33
        $this->lastmod = $lastmod;
34
35
        return $this;
36
    }
37
38
    public function getLastmod()
39
    {

Sitemap/Entity/Url.php 1 location

@@ 38-47 (lines=10) @@
35
        return $this->loc;
36
    }
37
38
    public function setLastmod($lastmod)
39
    {
40
        if ($lastmod !== null && !$lastmod instanceof \DateTime) {
41
            $lastmod = new \DateTime($lastmod);
42
        }
43
44
        $this->lastmod = $lastmod;
45
46
        return $this;
47
    }
48
49
    public function getLastmod()
50
    {