Model/DocumentTag.php
changeset 62 10be6b9e55e7
parent 57 186c4121c7b3
child 83 e9f04298bdfa
--- a/Model/DocumentTag.php	Fri Dec 09 04:53:56 2011 +0100
+++ b/Model/DocumentTag.php	Fri Dec 09 06:43:49 2011 +0100
@@ -48,6 +48,21 @@
     protected $document;
     
     
+   /**
+    * @var DateTime
+    */
+    protected $createdAt;
+    
+    /**
+    *
+    * construct the class
+    */
+    function __construct()
+    {
+        $this->createdAt = new \DateTime("now", new \DateTimeZone('UTC'));
+    }
+    
+    
     /**
      * Get id
      *
@@ -178,6 +193,16 @@
         return $this->document;
     }
     
+   /**
+    * (non-PHPdoc)
+    * @see IRI\Bundle\WikiTagBundle\Model.DocumentTagInterface::getCreatedAt()
+    */
+    function getCreatedAt()
+    {
+        return $this->createdAt;
+    }
+    
+    
     /**
     * Get wikipedia_version_permalink
     *