Code Duplication    Length = 39-39 lines in 3 locations

src/PhpGitHooks/Module/JsonLint/Contract/Command/JsonLintToolCommand.php 1 location

@@ 7-45 (lines=39) @@
4
5
use Bruli\EventBusBundle\CommandBus\CommandInterface;
6
7
class JsonLintToolCommand implements CommandInterface
8
{
9
    /**
10
     * @var array
11
     */
12
    private $files;
13
    /**
14
     * @var string
15
     */
16
    private $errorMessage;
17
18
    /**
19
     * JsonLintToolCommand constructor.
20
     *
21
     * @param array  $files
22
     * @param string $errorMessage
23
     */
24
    public function __construct(array $files, $errorMessage)
25
    {
26
        $this->files = $files;
27
        $this->errorMessage = $errorMessage;
28
    }
29
30
    /**
31
     * @return string
32
     */
33
    public function getErrorMessage()
34
    {
35
        return $this->errorMessage;
36
    }
37
38
    /**
39
     * @return array
40
     */
41
    public function getFiles()
42
    {
43
        return $this->files;
44
    }
45
}
46

src/PhpGitHooks/Module/PhpLint/Contract/Command/PhpLintToolCommand.php 1 location

@@ 7-45 (lines=39) @@
4
5
use Bruli\EventBusBundle\CommandBus\CommandInterface;
6
7
class PhpLintToolCommand implements CommandInterface
8
{
9
    /**
10
     * @var array
11
     */
12
    private $files;
13
    /**
14
     * @var string
15
     */
16
    private $errorMessage;
17
18
    /**
19
     * PhpLintToolCommand constructor.
20
     *
21
     * @param array  $files
22
     * @param string $errorMessage
23
     */
24
    public function __construct(array $files, $errorMessage)
25
    {
26
        $this->files = $files;
27
        $this->errorMessage = $errorMessage;
28
    }
29
30
    /**
31
     * @return array
32
     */
33
    public function getFiles()
34
    {
35
        return $this->files;
36
    }
37
38
    /**
39
     * @return string
40
     */
41
    public function getErrorMessage()
42
    {
43
        return $this->errorMessage;
44
    }
45
}
46

src/PhpGitHooks/Module/Composer/Contract/Command/ComposerTool.php 1 location

@@ 7-45 (lines=39) @@
4
5
use Bruli\EventBusBundle\CommandBus\CommandInterface;
6
7
class ComposerTool implements CommandInterface
8
{
9
    /**
10
     * @var array
11
     */
12
    private $files;
13
    /**
14
     * @var string
15
     */
16
    private $errorMessage;
17
18
    /**
19
     * ComposerToolCommand constructor.
20
     *
21
     * @param array  $files
22
     * @param string $errorMessage
23
     */
24
    public function __construct(array $files, $errorMessage)
25
    {
26
        $this->files = $files;
27
        $this->errorMessage = $errorMessage;
28
    }
29
30
    /**
31
     * @return string
32
     */
33
    public function getErrorMessage()
34
    {
35
        return $this->errorMessage;
36
    }
37
38
    /**
39
     * @return array
40
     */
41
    public function getFiles()
42
    {
43
        return $this->files;
44
    }
45
}
46