diff -r 1bc0ec8ed05b -r 10be6b9e55e7 Model/DocumentTag.php --- 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 *