Rajout de doctrine/orm
[zf2.biz/galerie.git] / vendor / doctrine / orm / tests / Doctrine / Tests / Models / Company / CompanyCar.php
1 <?php
2
3 namespace Doctrine\Tests\Models\Company;
4
5 /**
6  * @Entity
7  * @Table(name="company_cars")
8  */
9 class CompanyCar
10 {
11     /**
12      * @Id @Column(type="integer")
13      * @GeneratedValue(strategy="AUTO")
14      */
15     private $id;
16
17     /**
18      * @Column(type="string", length=50)
19      */
20     private $brand;
21
22     public function __construct($brand = null) {
23         $this->brand = $brand;
24     }
25
26     public function getId() {
27         return $this->id;
28     }
29
30     public function getBrand() {
31         return $this->title;
32     }
33 }