Code Duplication    Length = 15-15 lines in 2 locations

src/Media/Events/MediaObjectCreated.php 1 location

@@ 53-67 (lines=15) @@
50
     * @param Language $language
51
     * @param Url $sourceLocation
52
     */
53
    public function __construct(
54
        UUID $id,
55
        MIMEType $fileType,
56
        StringLiteral $description,
57
        StringLiteral $copyrightHolder,
58
        Url $sourceLocation,
59
        Language $language
60
    ) {
61
        $this->mediaObjectId = $id;
62
        $this->mimeType = $fileType;
63
        $this->description = $description;
64
        $this->copyrightHolder = $copyrightHolder;
65
        $this->sourceLocation = $sourceLocation;
66
        $this->language = $language;
67
    }
68
69
    /**
70
     * @return Language

src/Media/Image.php 1 location

@@ 45-59 (lines=15) @@
42
     */
43
    protected $language;
44
45
    public function __construct(
46
        UUID $id,
47
        MIMEType $mimeType,
48
        Description $description,
49
        CopyrightHolder $copyrightHolder,
50
        Url $sourceLocation,
51
        Language $language
52
    ) {
53
        $this->mediaObjectId = $id;
54
        $this->mimeType = $mimeType;
55
        $this->description = $description;
56
        $this->copyrightHolder = $copyrightHolder;
57
        $this->sourceLocation = $sourceLocation;
58
        $this->language = $language;
59
    }
60
61
    /**
62
     * @return Language