Code Duplication    Length = 8-10 lines in 2 locations

src/Message/Concerns/ResponseProperties.php 2 locations

@@ 22-31 (lines=10) @@
19
     * @param  string  $name
20
     * @return null|string
21
     */
22
    public function __get($name)
23
    {
24
        if (isset($this->data[$name])) {
25
            return $this->data[$name];
26
        } else {
27
            trigger_error(sprintf('Undefined property: %s::%s', __CLASS__, '$'.$name), E_USER_NOTICE);
28
29
            return;
30
        }
31
    }
32
33
    /**
34
     * Phương thức hổ trợ bảo vệ các thuộc tính của đối tượng từ dữ liệu gửi về từ MoMo.
@@ 40-47 (lines=8) @@
37
     * @param  mixed  $value
38
     * @return null|string
39
     */
40
    public function __set($name, $value)
41
    {
42
        if (isset($this->data[$name])) {
43
            trigger_error(sprintf('Undefined property: %s::%s', __CLASS__, '$'.$name), E_USER_NOTICE);
44
        } else {
45
            $this->$name = $value;
46
        }
47
    }
48
}
49