Code Duplication    Length = 3-3 lines in 3 locations

src/Model/Table/Entity/Entity.php 3 locations

@@ 75-77 (lines=3) @@
72
     */
73
    public function set(string $key, $value)
74
    {
75
        if (isset(self::getColumns()[$key]) === false) {
76
            throw new InvalidEntityPropertyException([get_class($this), $key]);
77
        }
78
79
        $newValue = $this->validatePropertyValueType($key, $value);
80
@@ 105-107 (lines=3) @@
102
     */
103
    public function get(string $key)
104
    {
105
        if (!isset(self::getColumns()[$key])) {
106
            throw new InvalidEntityPropertyException([get_class($this), $key]);
107
        }
108
109
        return $this->properties[$key];
110
    }
@@ 125-127 (lines=3) @@
122
     */
123
    public function validatePropertyValueType(string $key, $value)
124
    {
125
        if (!isset(self::getColumns()[$key])) {
126
            throw new InvalidEntityPropertyException([get_class($this), $key]);
127
        }
128
129
        /**
130
         * Allow NULL