Code Duplication    Length = 15-16 lines in 2 locations

src/AppserverIo/Lang/Reflection/ReflectionMethod.php 1 location

@@ 94-109 (lines=16) @@
91
     * @param array  $annotationsToIgnore An array with annotations names we want to ignore when loaded
92
     * @param array  $annotationAliases   An array with annotation aliases used when create annotation instances
93
     */
94
    public function __construct($className, $methodName, array $annotationsToIgnore = array(), array $annotationAliases = array())
95
    {
96
        // initialize property default values here, as declarative default values may break thread safety,
97
        // when utilizing static and non-static access on class methods within same thread context!
98
        $this->className = '';
99
        $this->methodName = '';
100
        $this->parameters = null;
101
        $this->annotations = null;
102
        $this->annotationsToIgnore = array();
103
        $this->annotationAliases = array();
104
105
        $this->className = $className;
106
        $this->methodName = $methodName;
107
        $this->annotationsToIgnore = $annotationsToIgnore;
108
        $this->annotationAliases = $annotationAliases;
109
    }
110
111
    /**
112
     * This method returns the class name as

src/AppserverIo/Lang/Reflection/ReflectionProperty.php 1 location

@@ 87-101 (lines=15) @@
84
     * @param array  $annotationsToIgnore An array with annotations names we want to ignore when loaded
85
     * @param array  $annotationAliases   An array with annotation aliases used when create annotation instances
86
     */
87
    public function __construct($className, $propertyName, array $annotationsToIgnore = array(), array $annotationAliases = array())
88
    {
89
        // initialize property default values here, as declarative default values may break thread safety,
90
        // when utilizing static and non-static access on class methods within same thread context!
91
        $this->className = '';
92
        $this->propertyName = '';
93
        $this->annotations = null;
94
        $this->annotationsToIgnore = array();
95
        $this->annotationAliases = array();
96
97
        $this->className = $className;
98
        $this->propertyName = $propertyName;
99
        $this->annotationsToIgnore = $annotationsToIgnore;
100
        $this->annotationAliases = $annotationAliases;
101
    }
102
103
    /**
104
     * This method returns the class name as