Model/Tag.php
changeset 62 10be6b9e55e7
parent 58 87bf6ec8af90
child 83 e9f04298bdfa
--- a/Model/Tag.php	Fri Dec 09 04:53:56 2011 +0100
+++ b/Model/Tag.php	Fri Dec 09 06:43:49 2011 +0100
@@ -56,8 +56,7 @@
     * @var string $alternativeWikipediaUrl
     */
     protected $alternativeWikipediaUrl;
-        
-    
+            
     /**
      * @var bigint $wikipediaPageId
      */
@@ -92,9 +91,23 @@
      * @var ArrayCollection $documents
      */
     protected $documents;
+    
+    /**
+     * @var DateTime
+     */
+    protected $createdAt;
 
 
     /**
+     *
+     * construct the class
+     */
+    function __construct()
+    {
+        $this->createdAt = new \DateTime("now", new \DateTimeZone('UTC'));
+    }
+    
+    /**
      * Get id
      *
      * @return integer
@@ -397,6 +410,15 @@
     {
         return $this->category;
     }
+    
+    /**
+     * (non-PHPdoc)
+     * @see IRI\Bundle\WikiTagBundle\Model.TagInterface::getCreatedAt()
+     */
+    function getCreatedAt()
+    {
+        return $this->createdAt;
+    }
 
     /**
      * Get Documents