| 1 | <?php |
||
| 14 | class Device |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @ORM\Id |
||
| 18 | * @ORM\Column(type="integer") |
||
| 19 | * @ORM\GeneratedValue(strategy="AUTO") |
||
| 20 | */ |
||
| 21 | protected $id; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Identifiant du téléphone |
||
| 25 | * @ORM\Column(name="device", type="string", unique=true) |
||
| 26 | * @JMS\Expose |
||
| 27 | * @Assert\Type("string") |
||
| 28 | */ |
||
| 29 | protected $device; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Type (iOS|Android|WP) |
||
| 33 | * @ORM\Column(name="type", type="string") |
||
| 34 | * @JMS\Expose |
||
| 35 | * @Assert\Type("string") |
||
| 36 | */ |
||
| 37 | protected $type; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @ORM\ManyToOne(targetEntity="KI\UserBundle\Entity\User", inversedBy="devices") |
||
| 41 | * @ORM\JoinColumn(nullable=false) |
||
| 42 | */ |
||
| 43 | protected $owner; |
||
| 44 | |||
| 45 | |||
| 46 | |||
| 47 | |||
| 48 | |||
| 49 | |||
| 50 | |||
| 51 | //===== GENERATED AUTOMATICALLY =====// |
||
| 52 | |||
| 53 | /** |
||
| 54 | * Get id |
||
| 55 | * |
||
| 56 | * @return integer |
||
| 57 | */ |
||
| 58 | public function getId() |
||
| 62 | |||
| 63 | /** |
||
| 64 | * Set device |
||
| 65 | * |
||
| 66 | * @param string $device |
||
| 67 | * @return Device |
||
| 68 | */ |
||
| 69 | public function setDevice($device) |
||
| 75 | |||
| 76 | /** |
||
| 77 | * Get device |
||
| 78 | * |
||
| 79 | * @return string |
||
| 80 | */ |
||
| 81 | public function getDevice() |
||
| 85 | |||
| 86 | /** |
||
| 87 | * Set type |
||
| 88 | * |
||
| 89 | * @param string $type |
||
| 90 | * @return Device |
||
| 91 | */ |
||
| 92 | public function setType($type) |
||
| 98 | |||
| 99 | /** |
||
| 100 | * Get type |
||
| 101 | * |
||
| 102 | * @return string |
||
| 103 | */ |
||
| 104 | public function getType() |
||
| 108 | |||
| 109 | /** |
||
| 110 | * Set owner |
||
| 111 | * |
||
| 112 | * @param \KI\UserBundle\Entity\User $owner |
||
| 113 | * @return Device |
||
| 114 | */ |
||
| 115 | public function setOwner(\KI\UserBundle\Entity\User $owner) |
||
| 121 | |||
| 122 | /** |
||
| 123 | * Get owner |
||
| 124 | * |
||
| 125 | * @return \KI\UserBundle\Entity\User |
||
| 126 | */ |
||
| 127 | public function getOwner() |
||
| 131 | } |
||
| 132 |