CompanyCar.php 538B

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