| 1 | <?php |
||
| 10 | class CorpDivision |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @ORM\Id @ORM\GeneratedValue @ORM\Column(name="id", type="bigint", options={"unsigned"=true}) |
||
| 14 | */ |
||
| 15 | private $id; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @ORM\Column(name="accountKey", type="bigint", options={"unsigned"=true}) |
||
| 19 | */ |
||
| 20 | private $accountKey; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @ORM\Column(name="description", type="string") |
||
| 24 | */ |
||
| 25 | private $description; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @ORM\ManyToOne(targetEntity="CorpCorporationSheet", inversedBy="divisions") |
||
| 29 | * @ORM\JoinColumn(name="ownerID", referencedColumnName="corporationID", nullable=false, onDelete="cascade") |
||
| 30 | */ |
||
| 31 | private $corporation; |
||
| 32 | |||
| 33 | public function __construct($accountKey, $corporation) |
||
| 34 | { |
||
| 35 | $this->accountKey = $accountKey; |
||
| 36 | $this->corporation = $corporation; |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Get id |
||
| 41 | * |
||
| 42 | * @return integer |
||
| 43 | */ |
||
| 44 | public function getId() |
||
| 48 | |||
| 49 | /** |
||
| 50 | * Get accountKey |
||
| 51 | * |
||
| 52 | * @return integer |
||
| 53 | */ |
||
| 54 | public function getAccountKey() |
||
| 58 | |||
| 59 | /** |
||
| 60 | * Set description |
||
| 61 | * |
||
| 62 | * @param string $description |
||
| 63 | * @return CorpDivision |
||
| 64 | */ |
||
| 65 | public function setDescription($description) |
||
| 66 | { |
||
| 67 | $this->description = $description; |
||
| 68 | |||
| 69 | return $this; |
||
| 70 | } |
||
| 71 | |||
| 72 | /** |
||
| 73 | * Get description |
||
| 74 | * |
||
| 75 | * @return string |
||
| 76 | */ |
||
| 77 | public function getDescription() |
||
| 81 | |||
| 82 | /** |
||
| 83 | * Get corporation |
||
| 84 | * |
||
| 85 | * @return CorpCorporationSheet |
||
| 86 | */ |
||
| 87 | public function getCorporation() |
||
| 91 | } |
||
| 92 |