| 1 | <?php |
||
| 10 | class CharCorporationRoleAtBase |
||
| 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="roleID", type="bigint", options={"unsigned"=true}) |
||
| 19 | */ |
||
| 20 | private $roleId; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @ORM\Column(name="roleName", type="string") |
||
| 24 | */ |
||
| 25 | private $roleName; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @ORM\ManyToOne(targetEntity="CharCharacterSheet", inversedBy="corporationRolesAtBase") |
||
| 29 | * @ORM\JoinColumn(name="ownerID", referencedColumnName="characterID", nullable=false, onDelete="cascade") |
||
| 30 | */ |
||
| 31 | private $character; |
||
| 32 | |||
| 33 | public function __construct(CharCharacterSheet $character) |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Get id |
||
| 40 | * |
||
| 41 | * @return integer |
||
| 42 | */ |
||
| 43 | public function getId() |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Set roleId |
||
| 50 | * |
||
| 51 | * @param integer $roleId |
||
| 52 | * @return CharCorporationRoleAtBase |
||
| 53 | */ |
||
| 54 | public function setRoleId($roleId) |
||
| 55 | { |
||
| 56 | $this->roleId = $roleId; |
||
| 57 | |||
| 58 | return $this; |
||
| 59 | } |
||
| 60 | |||
| 61 | /** |
||
| 62 | * Get roleId |
||
| 63 | * |
||
| 64 | * @return integer |
||
| 65 | */ |
||
| 66 | public function getRoleId() |
||
| 70 | |||
| 71 | /** |
||
| 72 | * Set roleName |
||
| 73 | * |
||
| 74 | * @param string $roleName |
||
| 75 | * @return CharCorporationRoleAtBase |
||
| 76 | */ |
||
| 77 | public function setRoleName($roleName) |
||
| 78 | { |
||
| 79 | $this->roleName = $roleName; |
||
| 80 | |||
| 81 | return $this; |
||
| 82 | } |
||
| 83 | |||
| 84 | /** |
||
| 85 | * Get roleName |
||
| 86 | * |
||
| 87 | * @return string |
||
| 88 | */ |
||
| 89 | public function getRoleName() |
||
| 93 | |||
| 94 | /** |
||
| 95 | * Get character |
||
| 96 | * |
||
| 97 | * @return \Tarioch\EveapiFetcherBundle\Entity\CharCharacterSheet |
||
| 98 | */ |
||
| 99 | public function getCharacter() |
||
| 103 | } |
||
| 104 |