Code Duplication    Length = 15-15 lines in 3 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

src/Media/Commands/UploadImage.php 1 location

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