Model/DocumentTag.php
changeset 62 10be6b9e55e7
parent 57 186c4121c7b3
child 83 e9f04298bdfa
equal deleted inserted replaced
61:1bc0ec8ed05b 62:10be6b9e55e7
    46      * @var object $document
    46      * @var object $document
    47      */
    47      */
    48     protected $document;
    48     protected $document;
    49     
    49     
    50     
    50     
       
    51    /**
       
    52     * @var DateTime
       
    53     */
       
    54     protected $createdAt;
       
    55     
       
    56     /**
       
    57     *
       
    58     * construct the class
       
    59     */
       
    60     function __construct()
       
    61     {
       
    62         $this->createdAt = new \DateTime("now", new \DateTimeZone('UTC'));
       
    63     }
       
    64     
       
    65     
    51     /**
    66     /**
    52      * Get id
    67      * Get id
    53      *
    68      *
    54      * @return integer
    69      * @return integer
    55      */
    70      */
   175      */
   190      */
   176     public function getDocument()
   191     public function getDocument()
   177     {
   192     {
   178         return $this->document;
   193         return $this->document;
   179     }
   194     }
       
   195     
       
   196    /**
       
   197     * (non-PHPdoc)
       
   198     * @see IRI\Bundle\WikiTagBundle\Model.DocumentTagInterface::getCreatedAt()
       
   199     */
       
   200     function getCreatedAt()
       
   201     {
       
   202         return $this->createdAt;
       
   203     }
       
   204     
   180     
   205     
   181     /**
   206     /**
   182     * Get wikipedia_version_permalink
   207     * Get wikipedia_version_permalink
   183     *
   208     *
   184     * @return string
   209     * @return string