Code Duplication    Length = 7-8 lines in 2 locations

src/Kunstmaan/MediaBundle/Entity/Media.php 1 location

@@ 147-153 (lines=7) @@
144
    /**
145
     * constructor
146
     */
147
    public function __construct()
148
    {
149
        $this->setCreatedAt(new \DateTime());
150
        $this->setUpdatedAt(new \DateTime());
151
        $this->deleted = false;
152
        $this->removedFromFileSystem = false;
153
    }
154
155
    /**
156
     * @param string $locale

src/Kunstmaan/MediaBundle/Entity/Folder.php 1 location

@@ 137-144 (lines=8) @@
134
    /**
135
     * constructor
136
     */
137
    public function __construct()
138
    {
139
        $this->children = new ArrayCollection();
140
        $this->media = new ArrayCollection();
141
        $this->setCreatedAt(new \DateTime());
142
        $this->setUpdatedAt(new \DateTime());
143
        $this->deleted = false;
144
    }
145
146
    /**
147
     * @return array