Code Duplication    Length = 7-8 lines in 2 locations

src/Entity/Helpers/SubClassData.php 2 locations

@@ 39-45 (lines=7) @@
36
   * @return mixed the value of the property
37
   * @throws PropertyNotExistingException
38
   */
39
  public final function getProperty($name)
40
  {
41
    if (!array_key_exists(strtolower($name), $this->subClassData)) {
42
      throw new PropertyNotExistingException(get_class($this), strtolower($name), "getProperty");
43
    }
44
    return $this->subClassData[strtolower($name)];
45
  }
46
47
  /**
48
   * Sets a property with the given name and the given value
@@ 54-61 (lines=8) @@
51
   * @return $this|SubClassData
52
   * @throws PropertyNotExistingException
53
   */
54
  public final function setProperty(string $name, $value)
55
  {
56
    if (!array_key_exists(strtolower($name), $this->subClassData)) {
57
      throw new PropertyNotExistingException(get_class($this), strtolower($name), "setProperty");
58
    }
59
    $this->subClassData[strtolower($name)] = $value;
60
    return $this;
61
  }
62
//</editor-fold desc="Public Final Methods">
63
64
//<editor-fold desc="Public Methods">