src/Company/BaseBundle/Entity/Document.php
changeset 2 806e57d67020
child 9 41a9fa70a47b
equal deleted inserted replaced
1:8cbd576d6b88 2:806e57d67020
       
     1 <?php
       
     2 
       
     3 namespace Company\BaseBundle\Entity;
       
     4 
       
     5 use Doctrine\ORM\Mapping as ORM;
       
     6 
       
     7 /**
       
     8  * Company\BaseBundle\Entity\Document
       
     9  *
       
    10  * @ORM\Table()
       
    11  * @ORM\Entity(repositoryClass="Company\BaseBundle\Entity\DocumentRepository")
       
    12  */
       
    13 class Document
       
    14 {
       
    15     /**
       
    16      * @var integer $id
       
    17      *
       
    18      * @ORM\Column(name="id", type="integer")
       
    19      * @ORM\Id
       
    20      * @ORM\GeneratedValue(strategy="AUTO")
       
    21      */
       
    22     private $id;
       
    23 
       
    24     /**
       
    25      * @var string $title
       
    26      *
       
    27      * @ORM\Column(name="title", type="string", length=255)
       
    28      */
       
    29     private $title;
       
    30 
       
    31     /**
       
    32      * @var text $description
       
    33      *
       
    34      * @ORM\Column(name="description", type="text")
       
    35      */
       
    36     private $description;
       
    37 
       
    38 
       
    39     /**
       
    40      * Get id
       
    41      *
       
    42      * @return integer 
       
    43      */
       
    44     public function getId()
       
    45     {
       
    46         return $this->id;
       
    47     }
       
    48 
       
    49     /**
       
    50      * Set title
       
    51      *
       
    52      * @param string $title
       
    53      */
       
    54     public function setTitle($title)
       
    55     {
       
    56         $this->title = $title;
       
    57     }
       
    58 
       
    59     /**
       
    60      * Get title
       
    61      *
       
    62      * @return string 
       
    63      */
       
    64     public function getTitle()
       
    65     {
       
    66         return $this->title;
       
    67     }
       
    68 
       
    69     /**
       
    70      * Set description
       
    71      *
       
    72      * @param text $description
       
    73      */
       
    74     public function setDescription($description)
       
    75     {
       
    76         $this->description = $description;
       
    77     }
       
    78 
       
    79     /**
       
    80      * Get description
       
    81      *
       
    82      * @return text 
       
    83      */
       
    84     public function getDescription()
       
    85     {
       
    86         return $this->description;
       
    87     }
       
    88 }