Code Duplication    Length = 8-8 lines in 2 locations

src/FilterResponse.php 2 locations

@@ 44-51 (lines=8) @@
41
        ];
42
    }
43
44
    public function __get($name)
45
    {
46
        if (array_key_exists($name, $this->response)) {
47
            return $this->response[$name];
48
        }
49
50
        throw new InvalidArgumentException("Property '{$name}' does not exist");
51
    }
52
53
    public function __set($name, $value)
54
    {
@@ 53-60 (lines=8) @@
50
        throw new InvalidArgumentException("Property '{$name}' does not exist");
51
    }
52
53
    public function __set($name, $value)
54
    {
55
        if (array_key_exists($name, $this->response)) {
56
            throw new ReadOnlyViolationException("Property '{$name}' is read-only");
57
        }
58
59
        throw new InvalidArgumentException("Property '{$name}' does not exist");
60
    }
61
62
    /**
63
     * Converts the response to an array.