Code Duplication    Length = 6-7 lines in 2 locations

src/Mouf/Database/TDBM/Utils/BeanDescriptor.php 1 location

@@ 44-50 (lines=7) @@
41
     */
42
    private $tdbmSchemaAnalyzer;
43
44
    public function __construct(Table $table, SchemaAnalyzer $schemaAnalyzer, Schema $schema, TDBMSchemaAnalyzer $tdbmSchemaAnalyzer) {
45
        $this->table = $table;
46
        $this->schemaAnalyzer = $schemaAnalyzer;
47
        $this->schema = $schema;
48
        $this->tdbmSchemaAnalyzer = $tdbmSchemaAnalyzer;
49
        $this->initBeanPropertyDescriptors();
50
    }
51
52
    private function initBeanPropertyDescriptors() {
53
        $this->beanPropertyDescriptors = $this->getProperties($this->table);

src/Mouf/Database/TDBM/Utils/TDBMDaoGenerator.php 1 location

@@ 52-57 (lines=6) @@
49
     *
50
     * @param Connection $dbConnection The connection to the database.
51
     */
52
    public function __construct(SchemaAnalyzer $schemaAnalyzer, Schema $schema, TDBMSchemaAnalyzer $tdbmSchemaAnalyzer) {
53
        $this->schemaAnalyzer = $schemaAnalyzer;
54
        $this->schema = $schema;
55
        $this->tdbmSchemaAnalyzer = $tdbmSchemaAnalyzer;
56
        $this->rootPath = __DIR__."/../../../../../../../../";
57
    }
58
59
    /**
60
     * Generates all the daos and beans.